Giter Club home page Giter Club logo

node-red-iot's Introduction

Node-RED for Arduino IoT Cloud, ready to deploy on Heroku

The idea of the repo is to apply a single patch on top of the latest version of Node-RED source code, then add some config vars and deploy it to Heroku.

Steps are:

  1. clone this repo
    git clone https://github.com/mastrolinux/node-red-iot.git
  1. Clone Node-RED
    git clone https://github.com/node-red/node-red node-red-patched
    cd node-red-patched
    git checkout 1.1.0
    git checkout -b iot-patch
  1. Apply my patch
    git am < ../node-red-iot/*.patch
  1. Install Node-RED

    npm install npm run build

  2. Create a password with Node-RED Admin

    ./node_modules/node-red-admin/node-red-admin.js hash-pw
  1. Set env vars and start Node-RED, create a .env file in your current dir with some info of your choice and then export the vars
    NODERED_PASSWORD_HASH='yourpassword-hash-from-the-node-red-admin-output'
    NODERED_USERNAME='admin'
    NODERED_CREDENTIAL_SECRET='averylongsecretofyourchoice'

    export $(cat .env | xargs)
    npm start
  1. (Optional, suggested) Deploy it on Heroku
    heroku login
    heroku create
    cat .env | xargs heroku config:set
    git push heroku iot-patch:master
  1. If you then add flows and credentials please remember to commit them on your own current private repo, Heroku does not have a permanent file-system, so adding them to your git repo is necessary to avoid loosing your work.

node-red-iot's People

Contributors

mastrolinux avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.