Leverege Platform

Leverege Platform

  • Overview
  • JSDocs
  • REST API
  • Help

›Services

Platform Overview

  • Overview
  • Architecture
  • Core Concepts

Guides

  • Platform Setup
  • Building a Project
  • API UI

Services

  • API Server
  • Message Processor
  • Transponder
  • Reason
  • Scheduler
  • Messenger
  • Emailer
  • Rest Server
  • DB Curator

API

  • API
  • Interface
  • Project
  • System
  • Device
  • Blueprint
  • Collection
  • Child
  • History
  • Scenario
  • Script
  • Template
  • Timer
  • User
  • Users

Server Libraries

  • Log
  • Messages
  • Message Queue
  • Cache
  • Lock
  • Limit
  • Cluster Manager
  • Error
  • Exit

Utilities

  • Promise
  • Data Store
  • Factory
  • Path
  • Reasoner
  • Object Util
  • Array Util
  • String Util
  • Base62 Util
  • Value Cache
  • Validator
  • Lol

UI

  • API Redux
  • UI Builder
  • UI Elements
  • UI Redux
  • UI Mapbox Elements
  • UI Active Theme
  • UI Color Elements
  • UI Linear View Elements

Rest Server

The Rest Server is a service that provides a way for systems outside of the Leverege Platform to send and receive messages from the Leverege Platform.

Rest Server contains two routes. The first route is for triggering inboundDataEventMsg which receives a http request, transforms it into a message, and then sends it into the Leverege Platform. The second route is for acknowledging outbound messages. Sending a http request to this endpoint starts an inboundAckMsg in the Leverege Platform.

Rest server also has a message processor for receiving outbound messages on the topic rest-outbound. These outbound messages get transformed into http requests. After receiving the outbound message, a http request can can be sent back to this service to acknowledge the event.

Configuration

Required

NameDescription
SRV_FIREBASE_SERVICE_ACCOUNTService account key to firebase database for remote store
SRV_FIREBASE_DATABASE_URLurl to firebase database for remote store
MODEL_FIREBASE_SERVICE_ACCOUNTservice account key to firebase database for models
MODEL_FIREBASE_DATABASE_URLurl to firebase database for models

Optional

NameDescriptionDefault
TRANSPORT_CONFIGconfig for readers and writers{ type, host, port }
NSQ_HOST_ADDRhost address for NSQ, if TRANSPORT_CONFIG is not specified'127.0.0.1'
NSQ_HOST_PORTport for NSQ, if TRANSPORT_CONFIG is not specified4150
REST_SERVER_PORTserver port that the server listens on8183
← EmailerDB Curator →
  • Configuration
Leverege Platform
Docs
Overview
Connect
FacebookLinkedInTwitter
Facebook Open Source