I have developed a REST API that I am going to serve for frontend i.e. food-client. At the moment, this API can handle restaurant, order, and image requests.
I built a REST API with Express.js, using MongoDB as a database to store the data, containerized my Nodejs app with Docker, and also used Nginx to load balance API requests.
The technologies I used to built this app.
- Nodejs
- Expressjs
- Clone the repository
git clone https://github.com/harkiratsm/food-server.git
- Change the working directory
cd food-server
- For Development Environment
- Install dependencies
make server-setup
-
Make sure you set all the environment variables under
.env
file. -
Run the docker-compose file
make docker-compose_dev
- For Production here.
🚀 You are all set to go.
- Expressjs - Rest API
- MongoDB - Database
- Nodejs
- Docker
- Nginx - Load balancing api calls
- Docker Desktop
- Nodejs
- MongoDB
- Postman - For testing api endpoints