A project for running node on Raspberry Pi via SSH. Should, but not tested, work on windows, osx and linux.
Install your favioure version of Raspbian. Connect your Pi to your network and enable ssh.
Write down your ip adress to use in deployer.js. You can use this command.
$ ifconfig
You can run commands via npm.
$ npm run [command]
Uploades files to the Pi. Files are listed in the deployer.
Runs the commands. Upload, Modules and Start in that order.
Starts a background processes using PM2 that will make sure the app is alive. To se logs run
$ npm run logs
Shows PM2 logs.
Runs the apps once without restarting. Good for testing code. Not good for continually running application.
Runs npm install on the Pi. Make sure to upload files before running.
Stop all running pm2 applications running.
Sets up your Pi with nodejs, npm and PM2. Good to run first time setting up.
Start PowerShell or Cmd as admin and run
$ npm install -g --production windows-build-tools