mini-graphql

module
v0.0.0-...-b1d6434 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2019 License: MIT

README

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!!!

Directories

Path Synopsis
src
db

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL