https://github.com/ryoichi-obara/node-red-run-local
Node-RED portable configuration
https://github.com/ryoichi-obara/node-red-run-local
hacktoberfest node-red node-red-flow nodered
Last synced: 4 months ago
JSON representation
Node-RED portable configuration
- Host: GitHub
- URL: https://github.com/ryoichi-obara/node-red-run-local
- Owner: ryoichi-obara
- License: mit
- Created: 2019-03-18T06:02:25.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-12-10T16:58:51.000Z (about 3 years ago)
- Last Synced: 2025-01-25T08:24:45.994Z (about 1 year ago)
- Topics: hacktoberfest, node-red, node-red-flow, nodered
- Homepage:
- Size: 354 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Portable Node-RED
Run Node-RED with local settings.
Node-RED with default options stores settings file to user directory like ``%USERPROFILE%\.node-red``.
This configured repository has options to store settings in local directory.
## Prepare
```sh
git clone git@github.com:ryoichi-obara/node-red-run-local.git
cd node-red-run-local
npm i
```
## Run
```sh
npm start
```
## Portable settings
``package.json`` in this repo uses ``--userDir`` and ``--flowFile`` options to run Node-RED.
The options specify location to store in your local directory.
## Debug in VS Code
For debugging purpose, this repository has ``./vscode/launch.json``.
You can debug your code / your Node-RED execution easily in VS Code.
launch.json has two options to debug.
Both are useful for your debugging.
One is to run Node-RED in VS Code debugging feature.
The other one is to pick up process that have already running.
### Debug to run Node-RED
* Click debug pane on side menu.
* Select a configuration "Run Node-RED".
* Start debugging
### Debug to pick process
* Run Node-RED e.g. ``npm start``
* Click debug pane on side menu.
* Select a configuration "Pick process".
* Start debugging