-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
30f61c1
commit d3ef66b
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# 💾 Node Red Unstorage | ||
|
||
Node-RED is a programming tool for wiring together hardware devices, APIs and online services via a browser-based editor. | ||
|
||
This project aims to embed and run a Node Red instance on a NodeJS application suitable for serverless deployment. | ||
|
||
By default the data is stored on filesystem. However, Node RED exposes a storage interface enabling custom integrations. | ||
|
||
This project implements a storage plugin based on [unstorage](https://unstorage.unjs.io/) library. Thus allowing a flexible storage layer that can run on filesystem, Mongo DB and a variety of key-value storage platforms. | ||
|
||
## Setup | ||
|
||
Make sure to install the dependencies: | ||
|
||
```bash | ||
# yarn | ||
yarn install | ||
|
||
# npm | ||
npm install | ||
|
||
# pnpm | ||
pnpm install | ||
``` | ||
|
||
## Development Server | ||
|
||
Start the development server on `http://localhost:3000` | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
## Production | ||
|
||
Build the application for production: | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
Locally preview production build: | ||
|
||
```bash | ||
npm run preview | ||
``` | ||
|
||
## Caveats | ||
|
||
Node RED has a large [library](https://flows.nodered.org/) of ready to use Nodes. In order to add an external Node to the palette, the installation should happend over CLI. | ||
|
||
## Credits | ||
|
||
- [@hardillb](https://github.com/hardillb) - [node-red-contrib-storage-mongodb](https://github.com/hardillb/node-red-contrib-storage-mongodb) |