šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

github.com/bsaunders95/accounts-statistics-tool

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/bsaunders95/accounts-statistics-tool

v0.0.0-20201015104618-8b0752e56847
Source
Go
Version published
Created
Source

accounts-statistics-tool

A tool to fetch accounts data

Prerequisites

  • Golang 1.12+
  • Docker
  • MongoDB

Environment variables

The following environment variables are used for program execution

VariableRequiredExampleDefaultNotes
TRANSACTIONS_MONGODB_URLāœ“mongodb://localhost:27017/This variable must follow the standardised MongoDB connection string format
TRANSACTIONS_MONGODB_DATABASEāœ“users_application
LOG_LEVELāœ—debuginfoA 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>

FAQs

Package last updated on 15 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts