This is an Electron template to embed Node-RED with an existing Node-RED project to create a native application.
 
 
Go to file
Dave Conway-Jones d0e24cff75 Update package.json 2016-07-13 16:47:25 +01:00
.gitignore some more tidying 2016-05-20 16:39:53 +01:00
.travis.yml tweak travis job 2016-06-16 09:00:52 +01:00
LICENSE.md
README.md some more tidying 2016-05-20 16:39:53 +01:00
appbkg.png Add more packaging goodness 2016-05-06 13:18:15 +01:00
appdmg.json let's try again 2016-05-06 17:07:03 +01:00
main.js ensure start order ok 2016-06-19 23:57:24 +01:00
node-red-node-disco-0.0.1.tgz tweak travis job 2016-06-16 09:00:52 +01:00
nodered.icns Several enhancements thanks to dceejay ! 2016-04-20 14:50:30 -04:00
nodered.ico let's try again 2016-05-06 17:07:03 +01:00
nodered.png let's try again 2016-05-06 17:07:03 +01:00
package.json Update package.json 2016-07-13 16:47:25 +01:00

README.md

electron-node-red

This is an Electron template to embed Node-RED with a Dashboard generated by node-red-dashboard.

You can base off this model and update the package.json file to include your own required dependencies.

To Use

To clone and run this repository you'll need Git and Node.js (which comes with npm) installed on your computer. From your command line:

# Clone this repository
git clone https://github.com/natcl/electron-node-red.git
# Go into the repository
cd electron-node-red
# Install dependencies and run the app
npm install && npm start

Packaging your application

If you want to distribute executables of this project, the easiest way is to use electron-packager:

sudo npm install -g electron-packager

# build for OS X 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=darwin --arch=x64

# build for Windows 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=win32 --arch=x64

# build for Linux 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=linux --arch=x64

Learn more about Electron and its API in the documentation.

To package as a dmg

look at https://github.com/LinusU/node-appdmg

appdmg appdmg.json ~/Desktop/NodeRED.dmg

To package as a deb

look at https://github.com/jordansissel/fpm

fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m your-email@example.com -a i386 Node-RED-linux-ia32/
fpm -s dir -t deb -f -n node-red-electron -v 0.13.4 -m your-email@example.com -a x86_64 Node-RED-linux-x64/

License CC0 (Public Domain)

See also