We can use pm2 library to setup your server.js run automatically.
npm install pm2
pm2 start server.js --name --watch && pm2 save && pm2 startup