Skip to content

francis04j/Cube

Repository files navigation

Transaction processor

Build and unit tests

How to use

This project uses .NET 8. Please make sure you have .NET 8 installed

To build the application, run $ dotnet build

To run it dotnet run --config config.json --input inputTransactions.csv --output output.csv

To run the unit tests $cd CubeLogic.TransactionsConverter.UnitTests dotnet test

Docker

Containerizing the application allow us to achieve consistent deployments environements across dev, testing and production. It also eliminate dependency issues because it packages all the required components into the container

To build and run this application using Docker, do the following

$ docker build -t transconv . //transconv is the image name in this example $ docker run -u root -v $(pwd)/inputTransactions.csv:/app/inputTransactions.csv -v $(pwd)/config.json:/app/config.json -v $(pwd)/output:/app/output transconv

//the above command runs the docker image build in previous command //it use the root user to run container via -u root, you can subsistute this for a user of your choice //It maps and mounts 3 volumes // First, -v $(pwd)/inputTransactions.csv:/app/inputTransactions.csv, for input transactions file // Second, -v $(pwd)/config.json:/app/config.json // Third, -v $(pwd)/output:/app/output

HitCount

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published