Skip to content

asalilje/PiNodeStarterProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PiNodeStarterProject

A project for running node on Raspberry Pi via SSH. Should, but not tested, work on windows, osx and linux.

Preprare your PI

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

Commands

You can run commands via npm.

$ npm run [command]

upload

Uploades files to the Pi. Files are listed in the deployer.

fullDeploy

Runs the commands. Upload, Modules and Start in that order.

start

Starts a background processes using PM2 that will make sure the app is alive. To se logs run

$ npm run logs

logs

Shows PM2 logs.

run

Runs the apps once without restarting. Good for testing code. Not good for continually running application.

modules

Runs npm install on the Pi. Make sure to upload files before running.

stop

Stop all running pm2 applications running.

setup

Sets up your Pi with nodejs, npm and PM2. Good to run first time setting up.

Good to know

Widnows Build Tools Needed for SSH2

Start PowerShell or Cmd as admin and run

$ npm install -g --production windows-build-tools

About

A small helper project to get a node app running on Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published