Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/srjchsv/simplebank
- Owner: srjchsv
- Created: 2022-08-21T20:50:54.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-04-17T11:29:54.000Z (over 1 year ago)
- Last Synced: 2024-06-20T16:51:03.992Z (5 months ago)
- Topics: dbdiagram, docker-compose, gin-gonic, golang, logrus, lucidchart, postgresql, sqlc, viper
- Language: Go
- Homepage:
- Size: 203 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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