Deploy sample NodeJS application using PM2

Clone app:

cd /opt
git clone https://github.com/contentful/the-example-app.nodejs
Get the dependencies:
cd the-example-app.nodejs/
npm install
Install PM2 globally:
npm install pm2@latest -g
Run the app with PM2:
pm2 start app.js
Stop the app:
pm2 delete app.js
Run the app with 4 forks:
pm2 start app.js -i 4