Quick way to create / run Graphql server dev environment with Golang.
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
-
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
- Creating an opinionated GraphQL server with Go
- https://dev.to/cmelgarejo/creating-an-opinionated-graphql-server-with-go-part-1-3g3l
- https://dev.to/cmelgarejo/creating-an-opinionated-graphql-server-with-go-part-2-46io
- https://dev.to/cmelgarejo/creating-an-opinionated-graphql-server-with-go-part-3-3aoi
- UUID or GUID as Primary Keys? Be Careful!
- Golang configuration in 12 factor applications
This project is licensed under the MIT License - see the LICENSE.md file for details