A webapp wrapper for running node-red in an Azure Web App
Switch branches/tags
Nothing to show
Clone or download

README.md

node-red-azure-webapp

A webapp wrapper for running node-red in an Azure Web App. To use it just:

  1. Deploy to Azure with this button:

Or...

  1. Create an Azure Web App

  2. Open the settings and activate Web sockets

    Web sockets

    Figure 1 Activate Web sockets

  3. Configure the deployment options as an External repository pointing to https://github.com/jmservera/node-red-azure-webapp.git

    External repo

    Figure 2 External Repository

This project currently uses a workaround to avoid a small problem caused with child_process.execFile: it uses a fake npm.cmd that points to the real one.

Usage

Wait until everything is deployed before opening the website, during the deployment a script is executed to download this repo and install all the needed modules. If you see this screen just wait about 30 seconds to let the Node-RED app start:

Not Started Site

Figure 3 Not Started Site

You can see the live log in the Azure Portal, in the Log stream tab:

Application logs stream

Figure 4 Application logs stream

It comes with some cool nodes preinstalled:

  • Dashboard (create an awesome ui and see it in https://yoursite/ui )
  • Azure IoT Hub
  • Cognitive Services
  • Azure Storage (Blobs & Tables)
  • DocumentDB
  • Azure SQL
  • Swagger node

Securing your deployment

To secure this deployment and add an admin password edit the settings.js file.

Version History

  • v0.0.1
    • First test with basic nodes
  • v0.0.2
    • Deploy to Azure Button
    • Add cognitive services
  • v0.0.3
    • Update Node-Red version to 0.18.4
  • v1.0.0
    • Update Nodejs to 8.9.4
    • Make Nodejs version configurable
    • Add Swagger Node