module
Version:
v0.0.0-...-8e3e671
Opens a new window with list of versions in this module.
Published: Aug 18, 2021
License: MIT
Opens a new window with license information.
README
¶
Golang GraphQl Dev Environment [Project Template]
Quick way to create / run Graphql server dev environment with Golang.
Golang packages:
github.com/99designs/gqlgen
github.com/gin-gonic/gin
github.com/google/uuid
github.com/jinzhu/gorm
github.com/spf13/viper
github.com/vektah/gqlparser
gopkg.in/gormigrate.v1
Usage:
-
To change package name
$ grep -rl "github.com/ysthey/go-gql-start" ./* | xargs sed -i 's/github\.com\/ysthey\/go-gql-start/newgitrepo\.com\/newpath\/newpackage/g'
-
Configuration files are ".env" and "./conf/*.yml"
-
To build:
$ ./scripts/build.sh
-
To run:
$ ./scripts/run.sh
-
To run tests:
$ ./scripts/run_tests.sh
-
To update schema:
$ vim ./internal/gql/schemas/schema.graphql
$ ./scripts/gqlgen.sh
Inspired by :
- Creating an opinionated GraphQL server with Go
- UUID or GUID as Primary Keys? Be Careful!
- Golang configuration in 12 factor applications
License
This project is licensed under the MIT License - see the LICENSE.md file for details
Directories
¶
Click to show internal directories.
Click to hide internal directories.