This project was done as part of an undergrad thesis, for more details visit: https://docs.google.com/file/d/0B4CqM12akwGJQ2hrTlVPTWtFYkE/edit?filetype=msword
-
Install node v6.9.1:
nvm install 6.9.1
-
Update NPM to version 3:
sudo npm install npm@latest -g
-
Configure the SMP RESTfulAPI (https://github.com/SmartPowerSocket/RESTfulAPI)
-
Run NGROK:
ngrok http 3000
-
Edit app/actions/types.js with the NGROK URL
-
Edit particle-gui/index.js with the NGROK URL
-
[WINDOWS ONLY] Install Python 2.7 and add to environment variables
-
[MAC ONLY] Remove .particle from ($HOME, $HOMEPATH, $USERPROFILE, or $home) if you used particle-cli previously
-
Run:
npm install
-
Run:
npm rebuild --runtime=electron --target=1.4.8 --disturl=https://atom.io/download/atom-shell --build-from-source
. Check electron package version by doing:npm ls electron
-
Run the app in dev mode:
npm run dev
-
For all platforms do:
npm run package-all
-
For your current platforms do:
npm run package
-
Run after packaging:
npm rebuild --runtime=electron --target=1.4.8 --disturl=https://atom.io/download/atom-shell --build-from-source
. Check electron package version by doing:npm ls electron