This is the repository of the Building Management microservice of the Smart Operating Block project.
You need to specify the following environment variable:
AZURE_CLIENT_ID
: ID of an Azure AD applicationAZURE_TENANT_ID
: ID of the application's Azure AD tenantAZURE_CLIENT_SECRET
: the application's client secretsAZURE_DT_ENDPOINT
: the Azure Digital Twins instance endpointMONGODB_CONNECTION_STRING
: the mongodb's connection stringBOOTSTRAP_SERVER_URL
: the kafka connection endpointSCHEMA_REGISTRY_URL
: the schema registry url
If you want to run it via docker container:
- Provide a
.env
file with all the environment variable described above - Run the container with the command:
docker run ghcr.io/smartoperatingblock/building-management-microservice:latest
- If you want to try the REST-API from the external you need to provide a port mapping to port 3000.
- If you want to pass an environment file whose name is different from
.env
use the--env-file <name>
parameter.