Skip to content
parker-chungPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

Start the project

Inside the project directory:

  • run composer update --no-scripts or composer install
  • run npm install && npm run dev
  • rename 'example.env' to '.env' and change database credentials
  • run php artisan key:generate
  • run php artisan migrate (make sure to have the database running in the server)

Frontend

  • 'Login' - log in with an exsiting account
  • 'Register' - create a new account

login & register

  • 'Logout' - log out

log out

  • 'Create' - create a new post

create

  • 'Edit' - edit the specified post (only displays & works for one's own posts)
  • 'Delete' - delete the specified post (only displays & works for one's own posts)

edit & delete

Backend

Display All Posts

API URL: posts

API Request Method: GET

Header Type Required? Description
token string optinal token created when logging in
Body Type Required? Description
None

Response:

Store a new post

API URL: posts

API Request Method: POST

Header Type Required? Description
token string optinal token created when logging in
Body Type Required? Description
title string required post title
content long text required post content

Response:

Update the specified post

API URL: posts/{post}

API Request Method: POST (PATCH)

Header Type Required? Description
token string Required token created when logging in
Body Type Required? Description
id integer required post id
title string required post title
content long text required post content

Response:

Delete the specified post

API URL: posts/{post}

API Request Method: POST (DELETE)

Header Type Required? Description
token string Required token created when logging in
Body Type Required? Description
id integer required post id

Response:

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages