Install node.js using n (Node version management)
$ apt install curl
$ curl -o /usr/local/bin/n https://raw.githubusercontent.com/visionmedia/n/master/bin/n
$ chmod +x /usr/local/bin/n
$ n stable
Install pm2 (process manager)
$ npm install pm2 -g
$ git clone https://github.com/VasseurLaurent/application-portal.git
$ cd application-portal
$ npm install
$ pm2 start index.js --name application-portal
Now the app runs on port 3000.
$ pm2 stop application-portal
$ pm2 restart application-portal
$ pm2 status
$ pm2 logs application-portal