electron-node-red/README.md

40 wiersze
1.3 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
This is an Electron template to embed Node-RED with a UI generated by node-red-contrib-ui.
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
2016-04-20 15:22:30 +00:00
electron-packager electron-node-red MyAppName --icon=nodered.icns --platform=darwin --arch=x64
2016-04-20 17:41:57 +00:00
# build for Windows 64 bits
2016-04-20 15:22:30 +00:00
electron-packager electron-node-red MyAppName --icon=nodered.icns --platform=win32 --arch=x64
2016-04-20 17:41:57 +00:00
# build for Linux 64 bits
2016-04-20 15:22:30 +00:00
electron-packager electron-node-red MyAppName --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).
#### License [CC0 (Public Domain)](LICENSE.md)