Inside the project directory:
- run
composer update --no-scriptsorcomposer 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)
- 'Login' - log in with an exsiting account
- 'Register' - create a new account
- 'Logout' - log out
- 'Create' - create a new post
- '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)
API URL: posts
API Request Method: GET
| Header | Type | Required? | Description |
|---|---|---|---|
| token | string | optinal | token created when logging in |
| Body | Type | Required? | Description |
|---|---|---|---|
| None |
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 |
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 |
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 |







