type safe, lightning fast & minimal GraphQL server template featuring
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
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!!!