1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
Go to file
Jeremy Barlow cb35604ef5 Resolve path when sending example file for Windows support
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.
2018-09-21 08:15:00 -07:00
.github Update mailing list references to new forum 2018-05-17 12:17:55 +01:00
bin node-red-pi: fix behavior with old bash version (#1713) 2018-05-03 09:41:37 +01:00
editor Fix dbl-click handling on webkit-based browsers 2018-09-14 11:09:56 +01:00
lib Add lib .gitignore 2013-09-05 15:07:01 +01:00
nodes Switch node: only use promises when absolutely necessary 2018-09-14 14:03:36 +01:00
red Resolve path when sending example file for Windows support 2018-09-21 08:15:00 -07:00
test Resolve path when sending example file for Windows support 2018-09-21 08:15:00 -07:00
.gitignore locale exposed to editor 2015-07-02 10:49:39 +01:00
.jshintrc add allow es6 to .jshintrc 2017-06-23 21:49:35 +01:00
.nodemonignore Have grunt dev restart on message catalog changes 2015-10-02 21:27:30 +01:00
.npmignore ignore Eclipse files and resolve some Eclipse JSHint warnings 2015-04-14 14:17:08 -04:00
.travis.yml Tidy up default grunt task and fixup test break due to reorder 2018-05-25 11:36:17 +01:00
CHANGELOG.md Update for 0.19.4 2018-09-17 11:26:06 +01:00
CODE_OF_CONDUCT.md Add CoC.md 2016-04-07 21:51:12 +01:00
CONTRIBUTING.md Update mailing list references to new forum 2018-05-17 12:17:55 +01:00
Gruntfile.js Split out expandable editors and add JS editor 2018-07-15 21:06:51 +01:00
LICENSE Update copyright header for JS Foundation 2017-01-11 15:24:33 +00:00
package.json Update for 0.19.4 2018-09-17 11:26:06 +01:00
README.md Update mailing list references to new forum 2018-05-17 12:17:55 +01:00
red.js update settings comments to describe how to setup for ipv6 (#1675) 2018-05-01 12:43:10 +01:00
settings.js Add example localfilesystem contextStorage to settings 2018-08-14 16:28:59 +01:00

Node-RED

http://nodered.org

Build Status Coverage Status

A visual tool for wiring the Internet of Things.

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.

  1. sudo npm install -g --unsafe-perm node-red
  2. node-red
  3. 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:

  1. Clone the code:

     git clone https://github.com/node-red/node-red.git
     cd node-red
    
  2. Install the node-red dependencies

     npm install
    
  3. Build the code

     npm run build
    
  4. 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.

Copyright JS Foundation and other contributors, http://js.foundation under the Apache 2.0 license.