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 application
- AZURE_TENANT_ID: ID of the application's Azure AD tenant
- AZURE_CLIENT_SECRET: the application's client secrets
- AZURE_DT_ENDPOINT: the Azure Digital Twins instance endpoint
- MONGODB_CONNECTION_STRING: the mongodb's connection string
- BOOTSTRAP_SERVER_URL: the kafka connection endpoint
- SCHEMA_REGISTRY_URL: the schema registry url
If you want to run it via docker container:
- Provide a .envfile 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 .envuse the--env-file <name>parameter.