https://github.com/hardillb/node-red-contrib-storage-mongodb
A flow/library storage plugin for Node-RED that uses MongoDB as the backend
https://github.com/hardillb/node-red-contrib-storage-mongodb
mongodb node-red
Last synced: about 1 year ago
JSON representation
A flow/library storage plugin for Node-RED that uses MongoDB as the backend
- Host: GitHub
- URL: https://github.com/hardillb/node-red-contrib-storage-mongodb
- Owner: hardillb
- License: apache-2.0
- Created: 2020-09-18T12:23:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-26T13:08:44.000Z (about 4 years ago)
- Last Synced: 2025-03-25T08:23:10.157Z (over 1 year ago)
- Topics: mongodb, node-red
- Language: JavaScript
- Homepage: https://www.hardill.me.uk/wordpress/2020/10/05/node-red-storage-plugin/
- Size: 15.6 KB
- Stars: 20
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# node-red-contrib-storage-mongodb
A storage plugin for Node-RED that uses MongoDB to store flows, library entries and settings
## Setup
Add the following to `settings.js`
```
...
storageModule: require('node-red-contrib-storage-mongodb'),
mongodbSettings: {
mongoURI: process.env["MONGO_URL"],
appname: process.env["APP_NAME"]
},
...
```
Where `mongoURI` is the location of a MongoDB database and `appname` is a unique identifier for this instance of Node-RED to allow multiple instances to use the same DB.
It will use a collections with the following names
- flow
- credentials
- settings
- sessions
- library