Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

github.com/surasithaof/gin-graphql-server

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/surasithaof/gin-graphql-server

Source
Go Modules
Version
v0.0.0-20230626154041-3e8e22992021
Version published
Created
Source

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

FAQs

Package last updated on 26 Jun 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts