This is the API for a Blog Web App. It is simple to use and integrate into your system.
Users can make a post and comment a post and the UserId is used to track who made a comment to a particular post.
The system also allows for user verification. A verification email is sent to the email of the user. The user must input the verification code to verify their account.
- Register User - The registered user is sent a verification code
- Verify Email - The user inputs the verification code and the server checks if the code is valid
- Resend Token - This is to request for a new token if the token has expired or if the user has forgotten the token
- Login - The user logs in with their email and password
- Forgot Password - The user inputs their email and a reset password link is sent to their email
- Reset Password - The user inputs their new password and the password is reset
- Create Post - The logged in user creates a post
- Get All Posts - The logged in user can gets all his posts
- Delete post - The logged in user can delete his posts
- Create Comment - The logged in user can comment on a post
- Get All Comments - The logged in user can get all comments for a posts
- Delete Comment - The logged in user can delete his comments
- Like Post - The logged in user can like a post
- Unlike Post - The logged in user can unlike a post
- Get All Likes - The logged in user can get all likes for a post
- Clone the repository using:
git clone
- Install all dependencies using:
npm install
- Then start the server using:
npm run dev