Before you have installed pm2. With this program the node js program will run when you close your terminal.
To see what process is running enter
pm2 list
To start the process enter
pm2 start index.js --name shopify
This will start the process
To stop the process enter
pm2 stop shopify