Giter VIP home page Giter VIP logo

currency-conversion-service's Introduction

Currency Conversion Service

About Project

That project is responsible for authenticate users and manage currency conversions between authenticated users currency wallets.

How To Build

To build the project as an executable file you can simply run the following make command;

make build

or you can build the project as docker image with the following command;

docker build -t ${docker_username}/${registry_name}:${image_tag}

How To Test

Before you test the application you need to generate needed mocks by executing following make command;

make generate-mocks

After you generate mocks, you can simply run following make command to run all tests;

make unit-tests

How To Run

Before you run the project, you need to stand the database up. You can simply use the following docker-compose command;

docker-compose up -d

After you stand up the database, you can either run the project as docker container or an executable file.

To run the project as executable file, you can use following make command combinations;

make build
make run

to first build then run. Or directly use following make command to build and run;

make start

To run the project as docker container, you can use following docker commands;

docker build -t ${docker_username}/${registry_name}:${image_tag}
docker run -p ${host_port}:4001 ${docker_username}/${registry_name}:${image_tag}

Cleanup The Project

You can use following make command to get rid of unnecessary files generated during build or test.

make clean

Handle Migrations

I wrote special seed commands both supports drop all tables from database by following make command;

make drop-tables

and creating all tables on database with static and example data

make migrate-tables

Swagger

You can see the swagger documentation of current endpoints after you start the application in the route; /swagger/index.html

Linter

I use default golangci-lint linter specifications for linting. You can use the following make command to check any lint issues;

make linter

currency-conversion-service's People

Contributors

enesarf avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.