Put computer to sleep via a web interface (Ubuntu Linux)
Following the instructions from Digital Ocean tutorial, you can run the express app as a service in Ubuntu.
In short, can start the server with:
pm2 start www
(www
is the name taken automatically when registering the Express server with PM2)