electron-node-red/README.md

51 wiersze
1.6 KiB
Markdown
Czysty Zwykły widok Historia

2016-03-09 21:59:34 +00:00
# electron-node-red
2016-03-09 21:49:41 +00:00
2016-05-06 12:18:15 +00:00
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.
2016-03-09 21:49:41 +00:00
## To Use
To clone and run this repository you'll need [Git](https://git-scm.com) and [Node.js](https://nodejs.org/en/download/) (which comes with [npm](http://npmjs.com)) installed on your computer. From your command line:
```bash
# Clone this repository
2016-03-09 21:59:34 +00:00
git clone https://github.com/natcl/electron-node-red.git
2016-03-09 21:49:41 +00:00
# Go into the repository
2016-03-09 21:59:34 +00:00
cd electron-node-red
2016-03-09 21:49:41 +00:00
# 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
2016-04-20 17:41:57 +00:00
# build for OS X 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=darwin --arch=x64
2016-04-20 17:41:57 +00:00
# build for Windows 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=win32 --arch=x64
2016-04-20 17:41:57 +00:00
# build for Linux 64 bits
electron-packager electron-node-red Node-RED --icon=nodered.icns --platform=linux --arch=x64
```
2016-03-09 21:49:41 +00:00
Learn more about Electron and its API in the [documentation](http://electron.atom.io/docs/latest).
2016-05-06 12:18:15 +00:00
### To package as a dmg
look at `https://github.com/LinusU/node-appdmg`
appdmg appdmg.json ~/Desktop/NodeRED.dmg
2016-03-09 21:49:41 +00:00
#### License [CC0 (Public Domain)](LICENSE.md)
2016-05-20 10:20:54 +00:00
## See also
- **Stand-alone Starter Project** - https://github.com/dceejay/node-red-project-starter
- **Bluemix Starter Project** - https://github.com/dceejay/node-red-bluemix-starter