bankofasia

command module
v0.0.0-...-a771440 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2023 License: MIT Imports: 24 Imported by: 0

README

Bank of Asia

one bank, all assets.

Progress

  • Postgres DB schema
  • Migration support using golang-migrate
  • Makefile for docker container creation, db up/down migrations
  • Tests for DB transactions, preventing deadlocks
  • Git workflow for tests for main branch
  • Server routes (+ tests) for account related functionality
  • Server routes (+ tests) for transfer related functionality
  • JWT token authentication
  • PASETO token authentication
  • users/login for user login using PASETO token authentication
  • PASETO token authentication for /accounts, /transfer routes
  • Dockerfile (multi-stage to reduce image size)
  • Docker Compose file to migrate and start DB before running main api
  • Set Up AWS (RDS, Secrets Manager, IAM User/User Groups, etc.)
  • CI workflow to deploy Docker image to AWS Container Registry using OpenID Connect
  • Set up EKS configurations to automatically authenticate, deploy, set up ingress, issue & renew TLS certificates
  • Add support for both access tokens & refresh tokens for user login
  • Add integration tests for user login
  • Add dbdocs integration
  • gRPC server & HTTP Gateway server using protobufs
  • evans support to ease development & testing

External Packages

  • sqlc to translate SQL into Go code
  • testify to ease test writing
  • migrate to migrate DB versions up/down
  • viper to read/set env & configuration variables
  • o1egl/paseto to add PASETO token authentication

TODO Backlog

  • Add tests for all errors of /transfers to gain full coverage
  • Add tests for all errors of /users to gain full coverage

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
db
mock
Package mockdb is a generated GoMock package.
Package mockdb is a generated GoMock package.
Package pb is a reverse proxy.
Package pb is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL