Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/artcom/bootstrap-server
- Owner: artcom
- License: mit
- Created: 2019-10-15T08:13:06.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-06-16T14:57:10.000Z (8 months ago)
- Last Synced: 2024-11-07T06:36:25.802Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 13
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 installexport 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.