examples

Simple code snippets to work with flespi

View project on GitHub

flespi.io message webhook plugin listener (nodejs)

Using express.js

Example: express.js

Install requirements in the new project:

npm install --save express

OR install requirements defined in package.json file in this directory:

npm install

Then start the HTTP server:

npm run express

Using built-in nodejs http server:

Example: simple.js

No dependencies required.

Start the HTTP server:

npm run simple