Code Monkey home page Code Monkey logo

seapay-microservice's Introduction

Seapay

To-do

  • Enable GitLab's CI Integration on your own fork
  • Enable pipeline and test coverage badges on README (click here for example)
  • Add docker example for production environment for both monolith and microservices (click here for example)

Description

Seapay is a fintech app consists of 4 different services:

  • API gateway
    • API gateway service routes all requests to other services
  • User account
    • User account service takes care of user management: user creation, get user data, etc
  • Wallet
    • Wallet service handles all wallet functionalities: update balance, get balance, create wallet, etc
  • Transaction
    • Transaction service manage all transaction data

The project itself has 4 modules:

  • seapay-api
    • a module that abstracts interface for all services
  • seapay-common
    • a module that groups all common functionalities used by all services
  • seapay-domain
    • the bussiness logic for all services goes here
  • seapay-monolith
    • an entry point of our monolithic app, including all handlers

How to use

Dependencies

Docker

How to build

# create db data folder
mkdir -p ./pgdata

# run db as detached docker container
docker-compose -f docker-compose-monolith-staging.yml up db -d

# tail log
## get container's name
docker ps
## tail container's log
docker logs -t -f [container_name]

# run build
docker-compose -f docker-compose-monolith-staging.yml run app make all

# to stop db container
docker-compose -f docker-compose-monolith-staging.yml down

How to run

# to run monolith as detached docker container
docker-compose -f docker-compose-monolith-staging.yml up -d

# tail log
## get container's name
docker ps
## tail container's log
docker logs -t -f [container_name]

# to stop
docker-compose -f docker-compose-monolith-staging.yml down
# to run microservices as detached docker container
docker-compose -f docker-compose-microservices-staging.yml up -d

# tail log
## get container's name
docker ps
## tail container's log
docker logs -t -f [container_name]

# to stop
docker-compose -f docker-compose-microservices-staging.yml down
# to cleanup all containers
docker rm -f $(docker ps -aq)

seapay-microservice's People

Watchers

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