Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artcom/bootstrap-server

A HTTP server serving basic bootstrap data as JSON object.
https://github.com/artcom/bootstrap-server

Last synced: about 1 month ago
JSON representation

A HTTP server serving basic bootstrap data as JSON object.

Awesome Lists containing this project

README

        

# Bootstrap Server

A HTTP server serving basic bootstrap data as JSON object. NodeJS services can process the bootstrap data with the [bootstrap client](https://github.com/artcom/bootstrap-client).

## Local Usage

```bash
npm install --global bunyan
npm install

export BACKEND_HOST=
export HTTP_BROKER_URI=
export TCP_BROKER_URI=
export WS_BROKER_URI=
export CONFIG_SERVER_URI=
export TOUR_ADMINISTRATOR_API_URI=
export STORAGE_SERVER_URI=
npm start | bunyan
```

The bootstrap data can now be queried at `http://localhost:3000/`.

## Bootstrap Data

The bootstrap data is structured as follows:

```typescript
{
backendHost: string,
httpBrokerUri: string,
tcpBrokerUri: string,
wsBrokerUri: string,
configServerUri: string,
tourAdministratorApiUri: string,
storageServerUri: string,
deviceTopic: string,
device: string
}
```

**Note:** Properties which are not exported as environment variables are omitted from the bootstrap data.

## Deployment

The service can be deployed with Dokku.