https://github.com/fxmbx/go-simple-bank
https://github.com/fxmbx/go-simple-bank
aws-cli ci-cd docker docker-compose eks-cluster grpc paseto sqlc
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/fxmbx/go-simple-bank
- Owner: fxmbx
- Created: 2022-08-16T19:37:23.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-10-07T08:41:46.000Z (over 3 years ago)
- Last Synced: 2025-08-29T05:33:05.040Z (9 months ago)
- Topics: aws-cli, ci-cd, docker, docker-compose, eks-cluster, grpc, paseto, sqlc
- Language: Go
- Homepage:
- Size: 215 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
🚀🚀🚀
## Skipped 30-34. no be me the guy go kill with confusion
golang-migrate/migrate
migrate create [-ext E] [-dir D] [-seq] [-digits N] [-format] NAME
Create a set of timestamped up/down migrations titled NAME, in directory D with extension E.
Use -seq option to generate sequential up/down migrations with N digits.
Use -format option to specify a Go time format string.
migrate create -ext sql -dir db/migration -seq init_schema
postgres driver
go get github.com/lib/pq
to check test using read db
go get github.com/stretchr/testify/
to test using mock db
go get github.com/golang/mock/mockgen@v1.6.0
mockgen -destination db/mock/store.go github.com/fxmbx/go-simple-bank/db/sqlc Store
gin for routing and some other things
go get -u github.com/gin-gonic/gin
viper for reading and watching env variables
go get github.com/spf13/viper
uuid for the tokens
go get github.com/google/uuid
jwt
github.com/dgrijalva/jwt-go
paseto
go get -u github.com/o1egl/paseto
to load environment variable into the current shell environment
source app.env
dbdocs
npm i -g dbdocs
to generate db doc user;
dbdocs build docs/db.dbml
[https://dbdocs.io/funbiolaore/simple_bank]
dbdocs password --set --project
to generate scehma code using dbml
npm i -g @dbml/cli
dbml2sql -- -o <.dbml file locaction>
dbml2sql --postgres -o docs/schema docs/db.dbml
evans
https://github.com/ktr0731/evans
to start:
evans --host localhost --port 8081 -r repl