- Create a
.env
file in root & copy the keys from .env.sample file - Install the dependencies with
npm install
- Start the server in development
npm start
- Command to deploy on production - npm run deploy
- create file .pm2.json in root directory
- paste .pm2.json.sample file content into .pm2.json file or can edit pm2 configs
- pm2:deploy - install all dependencies and deploy app
- pm2:stop - stop pm2 instance
- pm2:restart - restart running pm2 instance