Skip to content

Provides glue code for using LoopBack & Node-RED, also provides additional nodes for loopback.

Notifications You must be signed in to change notification settings

nachiket-p/red-loopback

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

red-loopback

red-loopback glues LoopBack & Node-Red together and provides features on top of it.

LoopBack is great as a node framework. It is built on top of Express JS.
Node-Red gives visual flow based interface.And its great for wiring together nodes (it has tons of ready to use nodes in its catalogue)

Usecases

Theratically, you can write most of your business logic code in Node-RED. But idea is to use flow based approach for side-effects like notifications, alerts, scheduler jobs, dashboard services etc.

Some of the cases for a hypothatical project management system

  • When a task is assigned to a user, he should get email/sms notification.
  • When a task is added, subscribing creator & assigner to that task.
  • When a task is updated, sending update notification to subscribed users of that task.
  • Generating weekly summary & emailing all the users of each project
  • Dashboard services & Dashboard UI as well

Loopback Nodes

red-loopback provides following nodes.

  • Code Block: For executing any javascript code
  • Operation Hook: Loopback Model Operation Hook
  • Method Call: For calling any Loopback Model method
  • Remote Hook: Enables you to execute a function before or after a remote method is called by a client
  • Opration Hook: Observes to models and allows to do something when a model performs a specific operation
  • Hook End: Terminates both opration and remote hooks
  • Hook End Error: Terminates both opration and remote hooks with error

Installation

Examples

Following repository contains a example of red-loopback. https://github.com/nachiket-p/red-loopback-example

About

Provides glue code for using LoopBack & Node-RED, also provides additional nodes for loopback.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published