gqlgen-example with
- onion architecture
- gqlgen
- echo
- gorm
- jwt-go
- sql-migration
Make sure you got docker installed
docker-compose up
docker-compose exec gqlgen-example sql-migrate up
docker-compose exec gqlgen-example go run database/seed/main.go
Access localhost:3333
to play ⚾
# code quality
brew install pre-commit golangci-lint
brew upgrade golangci-lint
pre-commit autoupdate
M1 users plz install by the following command
arch -arm64 brew install pre-commit golangci-lint
- create
schema/XXXX.graphqls
- run
gqlgen
from console - (optional) create
model
and link the model bygqlgen.yml
- build the repository and service to link the resolver
- try it on
localhost:3333
🐔
- Docker Compose
- app server
- postgres server
- pre-commit to ensure the quality
- migration
- seed
- app
- login + jwt
- mutation sample
- query sample
- test
- CI