Requirements: 1.node 2.mongodb
For local development
1. npm install
2. npm start
3.Test out in postman
HostLink : https://narotham.ml:3000/api/ Check out in local postman by importing postman collection in repo
Common Endpoint: https://narotham.ml:3000/api
- Signup user
Endpoint : /user/signup
METHOD: POST
- Login User
Endpoint : /user/login
METHOD: PUT
- Get user details
Endpoint : /user/
METHOD: GET
Authoristation :Bearer <jwt>
- Publish Article
Endpoint : /article/publish
METHOD: POST
Authoristation :Bearer <jwt>
- Get All Articles for Homepage
Endpoint : /article/
METHOD: GET
- Get One article
Endpoint : /article/<article_id>
METHOD: GET