accounts-statistics-tool
A tool to fetch accounts data
Prerequisites
Environment variables
The following environment variables are used for program execution
Variable | Required | Example | Default | Notes |
---|
TRANSACTIONS_MONGODB_URL | ✓ | mongodb://localhost:27017/ | | This variable must follow the standardised MongoDB connection string format |
TRANSACTIONS_MONGODB_DATABASE | ✓ | users_application | | |
LOG_LEVEL | ✗ | debug | info | A lower case representation of the standard log level enumerations. Possible values can be found here |
Building and running
Docker
Bake a Docker image using the following command at the base of the project:
docker build --build-arg transactions_mongodb_url="<your_mongo_connection_string>" --build-arg transactions_mongodb_database="<your_mongo_db_name> -t <image_name> .
An additional --build-arg
flag with key log_level can be optionally set to configure the log level of the environment.
Once built, run the image using:
docker run <image_name>