This system has only been used/tested on a Raspberry Pi 3.
sudo apt-get update
sudo apt-get install vim git
The system is known to work with Node 18 https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
sudo npm install -g pm2
Use raspi-config to configure.
Build the latest source
npm run build
If debugging, run the system manually
sudo node build/aquarium.js
Ensure that PM2 is installed.
Configure PM2 auto-start
sudo pm2 startup
Add the aquarium to PM2's process list
sudo pm2 start build/aquarium.js
If the system is running via PM2, you can check the state with sudo pm2 list
or sudo pm2 monit
To restart (particularly, after making source changes), use sudo pm2 restart aquarium