Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.06 KB

README.md

File metadata and controls

43 lines (29 loc) · 1.06 KB

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