Skip to content

Commit

Permalink
docs: add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed May 17, 2023
1 parent 30f61c1 commit d3ef66b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
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)

0 comments on commit d3ef66b

Please sign in to comment.