Steps to run the app

  1. Create a .env file in root & copy the keys from .env.sample file
  2. Install the dependencies with npm install
  3. Start the server in development npm start
  4. Command to deploy on production - npm run deploy

Production using pm2

  1. create file .pm2.json in root directory
  2. paste .pm2.json.sample file content into .pm2.json file or can edit pm2 configs
  3. pm2:deploy - install all dependencies and deploy app
  4. pm2:stop - stop pm2 instance
  5. pm2:restart - restart running pm2 instance