Skip to content

Instantly share code, notes, and snippets.

@gbrault
Created November 10, 2016 09:55
Show Gist options
  • Save gbrault/5345a749f2c39d13b4ead760968de9d5 to your computer and use it in GitHub Desktop.
Save gbrault/5345a749f2c39d13b4ead760968de9d5 to your computer and use it in GitHub Desktop.
How to extend node red dashboard: development setup
1. Make sure you have removed all global instances of node-red and dashboard on the developement machine
2. In a shell session (shell_1), create a directory to install node-red
3. cd this dir (node-red)
4. npm init
5. npm i node-red
6. cd node_modules/node-red
7. npm start
8. stop => the .node-red directory in <user> default directory should then be created
9. In a new shell (shell_2): cd <user>/.node-red/node_modules
10. git clone https://github.com/node-red/node-red-dashboard.git
11. cd node-red-dashboard
12. npm install => look the .config.json in <user>/.node-red, the reference of node-red-dashboard should point to the appropriate directory
13. make a change in the src directory of node-red-dashboard
14. gulp (if not installed npm i gulp -g)
15. In shell_1 npm cache clear, npm start
16. development loop from 13. to 15.
17. Make sure you reload the .js files in your browser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment