A React.js templated dashboard for Node-RED. Built on uibuilder.
#What is it? node-red-contrib-uibuilder-react is built on uibuilder. UIBuilder is used to deliver the page and manage the websocket communications. Use React as normal, and build when the site is ready.
npm install
npm start
- From scratch, install node-red and uibuilder.
- Create a uibuilder node name it react_ui and deploy (you can choose automatic creation of .html and .css files)
- 'cd uibuilder'
- mkdir src
- 'cd src'
- Install react in here (https://reactjs.org/tutorial/tutorial.html) npm install -g create-react-app create-react-app my-app
- cd my-applicable
- IMPORTANT, in your react package file, add
"hostpage":"/react_ui"
- In your setting file of node-red, add the following:
uibuilder: { userVendorPackages: ['reactjs'], debug: true },