- Run
brew install mongodb
- Run
brew services start mongodb
- Run
brew install kafka
- Run
brew services start zookeeper
- Run
brew services start kafka
make debug
to run locally
To run the dp-api-tests against the dp-identity-api run make acceptance
. This will run the API against a
different (test) Mongo database which will be torn down after the tests.
Environment variable | Default | Description |
---|---|---|
BIND_ADDR | localhost:23800 | The host and port to bind to |
MONGODB_BIND_ADDR | localhost:27017 | The MongoDB bind address |
MONGODB_DATABASE | identities | The MongoDB dataset database |
MONGODB_COLLECTION | identities | MongoDB collection |
HEALTHCHECK_INTERVAL | 30s | Time between self-healthchecks (time.Duration format) |
HEALTHCHECK_TIMEOUT | 2s | The timeout that the healthcheck allows for checked subsystems |
GRACEFUL_SHUTDOWN_TIMEOUT | 5s | The graceful shutdown timeout in seconds |
See CONTRIBUTING for details.
Copyright © 2016-2017, Office for National Statistics (https://www.ons.gov.uk)
Released under MIT license, see LICENSE for details.