Giter Site home page Giter Site logo

go-petr / pet-bank Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 7.77 MB

Banking service to mange users, accounts and money transfers

License: GNU General Public License v3.0

Makefile 0.74% Go 97.19% Shell 1.83% Dockerfile 0.24%
docker go postgresql aws-ecr github-actions go-gin

pet-bank's Introduction

Description

Key skills practiced

Clean Architecture; REST API (inc. OpenAPI, API design guide); Unit and Integration tests; Go Style Best Practices (inc. Google Go Style, Standard Go Project Layout); CI/CD (Run tests, linters and deploy the containerized app to Amazon Elastic Container Registry (ECR))

Features

This bank service provides APIs for the frontend to do the following things:

  1. Create and login users
  2. Create, get and list users own accounts of different currencies
  3. Transfer money between two accounts with recording all balance changes in account entries

Authorization rules

  1. Users can create an account only for themselves
  2. Users can get accounts that only they own
  3. Users can list accounts that only belong to them
  4. Users can send money only from their own account
  5. Users can only refresh their own access token

Data model

OpenAPI Specification

https://go-petr.github.io/pet-bank/

How to run

Locally

docker-compose -f deployments/docker-compose.yaml up

pet-bank's People

Contributors

go-petr 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.