API Microservice

  1. cd to the project directory
  2. Set up .env variables using .env.example
  3. To install dependencies run npm install on your terminal
  4. To start the server run npm run dev on your terminal if mongodb and nodejs are already install or using docker
    run docker build -t dockerHubUsername/apiservice . on your terminal to build the docker image,

To start your container run docker run -p 9001:9001 dockerHubUsername/apiservice

PS. You can also use PM2 to start the service by running pm2 restart ecosystem.config.js