@observerx/server
TypeScript icon, indicating that this package has built-in type declarations

1.0.0-alpha.9 • Public • Published

banner

@observerx/server

HTTP server for ObserverX, based on Expressjs.

Installation

$ npm install @observerx/server

Usage

import PlatformHttpServer from '@observerx/server';

const dataSource = getDataSource();
const server = new PlatformHttpServer(dataSource);
server.start();
// Server is listening on localhost:3000

// You can also set a port number and a host name through environment variables

Note: Configurations of ObserverX core should be written in environment variables or a .env file.

Readme

Keywords

none

Package Sidebar

Install

npm i @observerx/server

Weekly Downloads

2

Version

1.0.0-alpha.9

License

none

Unpacked Size

63.1 kB

Total Files

64

Last publish

Collaborators

  • samzhangjy