A basic application to demonstrate the microservices architecture with mongodb in nodejs using books store management.
- install latest version of nodejs
- install latest version of mongodb
- Good to have postman installed to test the microservices.
Name | Description |
---|---|
npm run startbookserver | Starts book server |
import postman collection in postman and test. you can find the postman collections here. https://github.com/codeonedigest/Book-Microservices-With-MongoDB-In-Nodejs/tree/master/test/postman
API | Method | Description |
---|---|---|
/api/v1/book/add | POST | Add new book |
/api/v1/books | GET | Get all the books |
/api/v1/book/:uuid | GET | Get book by id |
/api/v1/book/:uuid | PUT | Update book by id |
/api/v1/book/:uuid | DELETE | Delete book by id |