This is an assignment from SRE bootcamp from One2N. This is a basic REST API with CRUD operation. Technologies used in this are NodeJS, Express and MongoDB. Docker has been used to containerize the application.
-
Docker v19 or later must be installed.
-
GNU make to run makefile.
Note: Windows users can use this to install make.
make -v
There are three environment variables for this project which needs to be added in .env file in same directory:
- PORT
- MONGO_URI
- ENVIRONMENT = test / production / developement
Both of these variables are mandatory.
To run the project run this command after setting up environment variables
docker-compose up
Use this postman collection for API request lists and documentation.