The objective is to create a blog API where registered users can create as well as update blog posts. Non-registered users should not be able to create/update blog posts.
- Register User.
- Login User.
- JWT Authentication.
- CREATE Blog by authenticated user.
- UPDATE own blogs by authenticated user.
- DELETE own blogs by authenticated user.
- READ Blogs.
- GET all blogs created by user.
Clone down this repository. You will need node.js and git installed globally on your machine.
- Installation: npm install
- Add .env file in the directory with the .env variables shown in .env.example file.
- Start server: node server.js
Runs the app in the development mode on PORT 5000.
npm run test