1.0.11 • Published 7 years ago

express-datafire v1.0.11

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

Express DataFire

Live-editing & testing of datafire endpoints & scheduled tasks using express.

npm.io

Usage: as application

$ git clone https://github.com/coderofsalvation/express-datafire 
$ cd express-datafire
$ npm install
$ node app.js

Usage: as middleware

$ npm install express-datafire --save

And in your express app:

// Create a new Express application.
var app = express()

var port                = process.env.PORT || 3002
var host                = process.env.HOST || '127.0.0.1:'+port
require('express-datafire')(app, { port: port, host: host })

app.listen(port, function(){
  console.log("listening on "+host)
})

BOOM!

  • surf to / and you can access your endpoints & features

Getting started video

Check the getting started video

Why

Disclaimer: I'm not affiliated with datafire, so basically this is fanware

Express-datafire is intended for datafire enthousiast & experimentation, or to simply run datafire-code which shouldn't run on datafire.io. Please go to datafire.io in case you want:

  • free hosting of datafire code
  • a comfortable, and scalable way of glue-ing together complex dataflows
  • share and re-use other people's dataflows
topicexpress-datafiredatafire.io
stress testing / monitoringyesyes (but may spike pricing tier)
high volume realtime UDP-datayesno
datafire actionsyesyes
datafire tasksyesyes
datafire cliyesno
support for experimental npm modulesyesno (for obvious reasons)
scalablenoyes
multitenancytediouseasy
create dataflows with existing integrationstediouseasy
IoT sensors / hardware accessyesno
runs on intranetyesno
offline prototypingyesno
(server) hasslefreenoyes
safe for clientworknoyes
work with extremely big files / video encodingyesno

npm.io

Environment variables

All these are optional:

environment variablevalueexplanation
AUTH_USERtestlogin name for data-editor at /admin
AUTH_PASSWORDtestpassword for data-editoro at /admin
AUTH_ENDPOINTS1set this if you want to enable auth for endpoints too
SSL_PRIVKEYprivkey.pemset this to enable SSL
SSL_CERTcert.pemset this to enable SSL
HOST'localhost'host for swagger-ui to use for testing requests
PORT3002port for swagger-ui- to use for testing requests
DATADIR'./data'override default data-path for live editable endpoints

Features

  • live editor
  • system monitor
  • hot reloading of datafire endpoints & scheduled tasks
  • export of datafire config + files
  • tries to automatically install missing modules
  • ssl-ready

Datafire Docs

see here

About Datafire.io

DataFire is a webservice and open source framework for building and integrating APIs. It provides over 350 pre-built integrations, including:

MongoDB Slack GitHub Twilio Trello Spotify Instagram Gmail Google Analytics YouTube

Each integration provides a set of composable actions. New actions can be built by combining existing actions, JavaScript, and external libraries.

Actions are driven by JavaScript Promises, and can be triggered by an HTTP endpoint, on a schedule, or manually.

Sample Projects