gqlgen-ent-clean-architecture-boilerplate
A Clean Architecture boilerplate for Golang applications built with gqlgen and ent.
This boilerplate is inspired by Clean Architecture with ent and gqlgen | by Manato Kuroda | Better Programming, but with some original customizations based on the official docs of ent..
The Go gopher was designed by Renée French.
Usage
Run Docker
cd docker
docker comopse up
Set up database
make setup_db
make migrate_schema
Codegen
make generate
Start server
make start
You can see the GraphQL Playground at http://localhost:8080/playground.
Testing
make setup_test_db
make test_repository
E2E
make setup_e2e_db
make e2e
FAQ
How to add a schema?
Now Writing.
References