kopia lustrzana https://github.com/dceejay/electron-node-red
1baecfeeb1 | ||
---|---|---|
.gitignore | ||
LICENSE.md | ||
README.md | ||
flows.json | ||
main.js | ||
package.json |
README.md
electron-node-red
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.
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 fox OS X 64 bits
electron-packager electron-node-red MyAppName --platform=darwin --arch=x64
# build fox Windows 64 bits
electron-packager electron-node-red MyAppName --platform=win32 --arch=x64
# build fox OS X 64 bits
electron-packager electron-node-red MyAppName --platform=linux --arch=x64
Learn more about Electron and its API in the documentation.