Coder Social home page Coder Social logo

escalopa / fingo Goto Github PK

View Code? Open in Web Editor NEW
8.0 1.0 0.0 2.55 MB

Distributed banking systems built in golang

License: MIT License

Shell 0.98% Go 98.10% JavaScript 0.02% Dockerfile 0.90%
goalng grpc rabbitmq microservices design-patterns cockroachdb docker hexagonal-architecture jaegertracing opentelemetry

fingo's Introduction

fingo ๐Ÿฆ๐Ÿ’ธ

Build Status Go Report Card wakatime

codecov

GitHub issues GitHub pull requests License: MIT

Run in Postman

fingo is a scalable, robust payment system that allows users to send money to each other. fingo users can issue accounts with more than one currency and many payments cards.

Currently, fingo supports 5 currencies: USD, EUR, GBP, EGP, RUB.

Table of Contents ๐Ÿ“‘

Tech Stack ๐Ÿ› 

fingo is built using scalable, reliable, robust and secure technologies which are listed below. ๐Ÿ”ฅ

Architecture ๐Ÿ—

Communication between all the microservices is done using grpc or message brokers to ensure that the system is scalable reliable and fault tolerant.

In fingo we have the following services, Where each one is responsible for a specific set of tasks, Click on each service to see its documentation and how it works.

  1. Auth (SignUp, SignIn, SignOut, Renewing tokens)
  2. Token (Validating access tokens)
  3. Wallet (Create wallets, accounts, cards and manage payments)
  4. Contact (Sending emails)

Each service is built using the Hexagonal Architecture pattern. This allows us to have a clean separation between the business logic and the infrastructure. This way we can easily swap the infrastructure without affecting the business logic.

All services trace their requests using OpenTelemetry and send them to Jaeger for monitoring and debugging besides Jaeger UI for visualization.

To make the system more robust, All microservices have a graceful shutdown function called on termination signal. For more about it see.

Components

Diagram

How to run โš™๏ธ

Prerequisites

  1. Git
  2. Docker
  3. Docker Compose

Running the project

First clone the project

git clone github.com/escalopa/fingo && cd fingo

Docker Compose

Copy env vars, Env vars are used by docker to start the application

cp .env.example .env
cp .rabbitmq.env.example .rabbitmq.env
cp .db.env.example .db.env

Run the project

docker compose -f ./stack.yaml up

After the project is up and running you can access the following interfaces for monitoring and debugging

To interact with the services you can use the Postman Collection

fingo's People

Contributors

deepsource-io[bot] avatar escalopa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  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.