AttainU Backend Instructor Assignment
-
Need to install MongoDB Community Server
-
Install dependencies -
npm i
-
Run server -
npm run start
-
User Signup -
http://localhost:8082/api/auth/signup
-
User Signin -
http://localhost:8082/api/auth/signin
-
Create Post (only admin can create) Post Method, will require
x-access-token
Header -http://localhost:8082/api/posts/
-
Get Posts Get Method, will require
x-access-token
Header -http://localhost:8082/api/posts?page=1&limit=10
-
Update Post (only admin can update) Put Method, will require
x-access-token
Header -http://localhost:8082/api/posts/:id
-
Delete Post (only admin can delete) Delete Method, will require
x-access-token
Header -http://localhost:8082/api/posts/:id