innovation-accounts-statistics-tool

command module
v0.0.0-...-62c273f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2021 License: MIT Imports: 6 Imported by: 0

README

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
SENDER_EMAIL example@provider.co.uk This variable must be on the AWS authorised list
RECEIVER_EMAILS example@provider.co.uk,another@provider.co.uk These variables must be on the AWS authorised list and be separated by commas with no spaces
SES_AWS_REGION eu-west-1 This variable must be a valid AWS region
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> --build-arg sender_email="<example@provider.co.uk>" --build-arg receiver_email="<example@provider.co.uk>" --build-arg ses_aws_region="<ses_aws_region_here>" -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>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL