Skip to content

surasithaof/gin-graphql-server

Repository files navigation

Gin GraphQL server

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

Setup

Justfile for running command

brew install just

golang-migrate to migrate database.

brew install golang-migrate

Set up .env file

Create .env file and set up environment variables (you can copy from .env.example)

Create and migrate database

You can start postgresql database by run this command docker-compose up, And do the migration by run just db-migrate

Start service 🚀

just run

About

GraphQL server for learning how GraphQL work

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published