This is the source of the application behind http://flows.nodered.org.
It provides a searchable index of user-contributed flows as well as node packages published to npm.
This repo comes with a docker-compose based development environment. To get started:
-
Install docker
-
Configure your flow-library settings.
The repository includes the file
default-settings.js
. You should copy that tosettings.js
and update it with your various api keys. Do not check this file back into git - it has already been added to.gitignore
to prevent this. -
Run:
npm run docker
This first time you run this will take a while as it downloads various pieces. When it completes, you will be able to access http://localhost:7000 to see the flow library.
The docker image uses nodemon
to watch for changes to the source code and
automatically restart the app when needed - without having to restart docker.
To test you will want to add a few nodes to the database. To do so, use the update-one task. For example.
node tasks/update-one.js node-red-dashboard
or in the docker container running the application
docker exec -it flowlibrary_node_1 node tasks/update-one.js node-red-dashboard