Basic GraphQL Server on Gin framework and gqlgen written by Go.
- Use gqlgen to create graphql server
- Connect to Database (PostgresQL) using Bun or GORM for ORM
- Database migration
- Dataloader to solve N+1 database queries
- Subsciptions
- Unit test
- Security middleware (JWT, Gocloak)
- Docker support
Justfile for running command
brew install just
golang-migrate to migrate database.
brew install golang-migrate
Create .env
file and set up environment variables (you can copy from .env.example
)
You can start postgresql database by run this command docker-compose up
,
And do the migration by run just db-migrate
just run