Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/srjchsv/simplebank

Simplebank backend
https://github.com/srjchsv/simplebank

dbdiagram docker-compose gin-gonic golang logrus lucidchart postgresql sqlc viper

Last synced: 1 day ago
JSON representation

Simplebank backend

Awesome Lists containing this project

README

        

### 🏦 Educational project- simplebank🏦

## Currently made:

- Database schema design.
- Generated CRUD queries using SQLC.
- Implemented balance transfer transaction.
- TX lock handled.
- Unit and integration tests.
- Github actions CI
- REST api.
- Authorization and authentification with https://github.com/srjchsv/service microservice.

## Use `make up`

it would run simple-bank and make migrations
and go to https://github.com/srjchsv/service to run auth service
![simplebank schema](static/simple-bank-schema.jpeg "simplebank database schema")

### Accounts management:

- POST signup `make signup`
- POST signin `make signin`
- GET get account by id `make get-account`
- PUT Update account by id `make update-account`
- GET get accounts in batches `make get-accounts`
- DELETE delete account by id `make delete-account`

### Balance transfers management:

- POST Transfer balance from-to account `make transfer`

### Below is the postgres database schema:

![simplebank database schema](static/simplebank.png "simplebank database schema")

### Useful links:

- videos:
https://www.youtube.com/watch?v=rx6CPDK_5mU&list=PLy_6D98if3ULEtXtNSY_2qN21VCKgoQAE

- articles:
https://dev.to/techschoolguru/series/7172