This project runs a nodejs application and uses mongodb as database. It has an API that performs the CRUD operations by interacting with database. It creates a product , updates a product, get a single and all products and deletes a product.
Look at the file to know about schema of a product.
Follow the following steps if you want to run this app on your local machine.
Install npm from here and node here.
Install mongo db from here.
Build the application using npm install
.
Ensure mongodb is running. You can test using mongo db compass. This is the connection string
mongodb://localhost:27017/
.
After that run node server.js
Now go to browser and type localhost:3000
or localhost:3000/blog
Follow the README of tests if you want to know about tests.
Use npm test
to run the test.
Push something in some branch raise a pull request in the repository. You will see the tests being executed in the actions section.
Like this
For docker follow this README.md.
For kubernetes follow this README.md.
For vagrant and ansible follow this README.md.
For istio follow this README.md.
For monitoring follow this README.md.