A sample node js rest api for crud api for adding adding blog post and associating it with a user and adding multiple comments. The API uses NodeJs, MongoDB and Fastily
Note
This project requires MongoDB installed and running on your machine or you can sign up for a cloud mongodb online.
This sample rest api project should be easily cloned, installed all node packages and running in no time.
//on local
git clone https://github.com/sargbah84/sample-node-rest-api
cd sample-node-api
npm install
npm start
http://localhost:8880//api/users
http://localhost:8880//api/user/:id
http://localhost:8880//api/user
http://localhost:8880//api/user/:id
http://localhost:8880//api/user/:id
http://localhost:8880//api/posts
http://localhost:8880//api/post/:id
http://localhost:8880//api/post
http://localhost:8880//api/post/:id
http://localhost:8880//api/post/:id
http://localhost:8880//api/comments
http://localhost:8880//api/comment/:id
http://localhost:8880//api/comment
http://localhost:8880//api/comment/:id
http://localhost:8880//api/comment/:id