monkrus / graphql-gin

Walk-through of the Building a GraphQL Server in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Welcome to Building a GraphQL Server in Golang with Gin HTTP Walkthrough ๐Ÿ‘‹

Part

๐Ÿ  Homepage

Installation

Initialize with   `go mod init github.com/monkrus/graphql-server`
Run               `go get github.com/99designs/gqlgen`
Project skeleton  `go run github.com/99designs/gqlgen init`
Replace           `schema.graphqls` file
Add               `// go: generate go run github.com/99designs/gqlgen` to resolver.go
Remove            `schema.resolvers.go`
Goto              `cd graph/`
Run               `go run github.com/99designs/gqlgen generate`

Further Steps

Modify `schema.resolvers.go`
Run    `go run server.go` 

Run tests

Start with  `go run ./server.go"`

Author

๐Ÿ‘ค ** Pragmatic Reviews **

Reviewer

๐Ÿ‘ค ** monkrus **

Show your support

Give a โญ๏ธ if this project helped you!


This README was generated with โค๏ธ by readme-md-generator

About

Walk-through of the Building a GraphQL Server in Golang


Languages

Language:Go 100.0%