CRUD BLOG
DATABASE
- see what tables and columns we need.
- Add dummy database.
-
CREATE
- user need to be logged in
- check if data is text
- check for empty fields
- if checks are met, do a request and create post.
-
READ
- Read data from the database
-
UPDATE
- Same as create, but wee need the values in the post.
- only edit his own posts.
- check if values are not the same or empty.
-
Delete
- Delete button that does a database request.
- check if the user id is equal to the user id of post creeation.