Installation
Node-RED Quantum requires at minimum Node.js 12.0.0, Node-RED 1.0, and Python 3 (version 3.6 or greater is recommended). You must also start Node-RED from a Bash or PowerShell environment, as it is required to execute scripts which prepare the Python virtual environment.
Node-RED Quantum can be installed in a variety of ways: using the Node-RED interface, building from source, or through Docker. If you are having trouble installing the package, using a different means of installation may help resolve issues.
Node-RED Palette Manager
- Install Node-RED locally by following the installation instructions on the Node-RED website.
- Once Node-RED has been installed, start the application by entering the
node-redcommand in the terminal. - Open the Node-RED interface by navigating to the IP address the server is running at in your browser. This will usually be
http://127.0.0.1:1880/. - In Node-RED, open the drop-down menu at the top-right corner of the interface and navigate to the Palette Manager. Select Install and enter ‘quantum’ in the search bar.
- Install the node-red-contrib-quantum package. Once installed, the quantum nodes provided by this library will show in the Palette (on the left-side of the Node-RED editor). Please note that installation may take a few minutes, as background tasks for preparing the Python virtual environment and installing dependencies need to complete.
Building From Source
- Clone the repository from GitHub with the command
git clone https://github.com/node-red-quantum/node-red-contrib-quantum.git. - Navigate to your local copy with
cd node-red-contrib-quantum, and run thenpm run setupcommand. This will automatically install dependencies, prepare the Python virtual environment, and link the package to Node-RED. This process may take a few minutes. - Once the set up is complete, open Node-RED by running the
npm startcommand in the terminal. This will start the Node-RED application. - Open Node-RED by navigating to the IP address the server is running at in your browser, which will usually be
http://127.0.0.1:1880/. The quantum nodes should now appear in the Node-RED Palette.
Docker
- Install
dockeranddocker-compose. The installation guide can be found on the official Docker website. - Clone the repository from GitHub with the command
git clone https://github.com/node-red-quantum/node-red-contrib-quantum.git. - Navigate to your local copy with
cd node-red-contrib-quantum, and rundocker-compose -p quantum upto start the development container. You can also add-doption to run it in detached mode. Depending on your system setup, you may need to run this with root permissions. - Once the set up is complete, Node-RED will automatically start and will usually be available at
http://127.0.0.1:1880/.