REST APIs for BloodLine mobile app.
- Clone the Repo
git clone https://github.com/thisisrishabh22/Blood-Line-Backend.git- Change the directory to project
cd Blood-Line-Backend\- Install Packages
If using yarn as package manager
yarnIf using npm as package manager
npm install- Create .env file in the root of project folder.
- Store the MongoDB connection string in the .env as demonstrated in .env.example
- Start the server
- Using PM2
- Make sure you have pm2 installed in your server
- If using yarn as package manager
yarn
pm2 start server.js --name bloodline-api- If using npm as package manager
npm install
pm2 start server.js --name bloodline-api- Using Docker
-
Make sure you have docker and docker-compose installed on your system
-
Build the Images
docker-compose build- Run the containers in daemon
docker-compose up -dThanks goes to these people ✨✨:
Sumit Thakur 💻 |
Rishabh Singh 💻 |