cb35604ef5
Previously, when trying to import an example into the flow editor on Windows, the load attempt would fail with an HTTP 404 error in the browser client, with a `TypeError: path must be absolute or specify root to res.sendFile` error being written to the Node-RED log. This was due to the path being passed to the `res.sendFile` function not being fully-qualified (for example, `\Users\myuser\...\example.json`). With the changes in this commit, the path to the example file is resolved to a fully-qualified path before being passed into the `res.sendFile` call. For example, a path on Windows of `\Users\myuser\...\example.json` would be transformed to `C:\\Users\\myuser\\...\\example.json` before being passed along to the `sendFile` function. This change allows the file to be loaded and sent properly to the browser client and for the embedded flows in the example to be loaded in the flow editor. |
||
---|---|---|
.github | ||
bin | ||
editor | ||
lib | ||
nodes | ||
red | ||
test | ||
.gitignore | ||
.jshintrc | ||
.nodemonignore | ||
.npmignore | ||
.travis.yml | ||
CHANGELOG.md | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE | ||
package.json | ||
README.md | ||
red.js | ||
settings.js |
Node-RED
A visual tool for wiring the Internet of Things.
Quick Start
Check out http://nodered.org/docs/getting-started/ for full instructions on getting started.
sudo npm install -g --unsafe-perm node-red
node-red
- Open http://localhost:1880
Getting Help
More documentation can be found here.
For further help, or general discussion, please use the Node-RED Forum or slack team.
Developers
If you want to run the latest code from git, here's how to get started:
-
Clone the code:
git clone https://github.com/node-red/node-red.git cd node-red
-
Install the node-red dependencies
npm install
-
Build the code
npm run build
-
Run
npm start
or
node red.js
Contributing
Before raising a pull-request, please read our contributing guide.
This project adheres to the Contributor Covenant 1.4. By participating, you are expected to uphold this code. Please report unacceptable behavior to any of the project's core team at team@nodered.org.
Authors
Node-RED is a project of the JS Foundation.
It was created by IBM Emerging Technology.
- Nick O'Leary @knolleary
- Dave Conway-Jones @ceejay
Copyright and license
Copyright JS Foundation and other contributors, http://js.foundation under the Apache 2.0 license.