Assumptions -
- mongodb is installed and server is running on default port.
- Node 6.9.0 is installed.
Please follow belos steps to check CRUD operations with nodedata
- git clone https://github.com/sureshdube14/nodedata-demo-sample.git
- cd nodedata-demo-sample/Demo-Sample
- npm install
- npm start
- Post a JSON {"name": "testBlog"} to http://localhost:9999/data/blogs
- Hit the api to get data(http://localhost:9999/data/blogs)
- Hit the api with put method http://localhost:9999/data/blogs/{{blogId}} with body {"name": "testBlog1"}
- Hit the api with delete method http://localhost:9999/data/blogs/{{blogId}}