/mini-graphql

A minimal GraphQL server template in Go.

Primary LanguageGoMIT LicenseMIT

mini-graphql 🧩

type safe, lightning fast & minimal GraphQL server template featuring

get started

Make sure the Go binaries and dep manager are installed first!

dep install
go run src/cmd/migration/up.go

Now we can start running the server locally, or with Docker:

go run src/cmd/server/main.go

./compile.sh
docker build -t gql .
docker run -it -p 8080:8080 gql

final docker size

The 'main' binary is copied into a builder container, then stripped and compressed and transferred to a scratch image!

The final executable binary results in a stunning 4MB image!!!