go-api

module
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT

README

go-api

Satimoto public API using golang

On schema changes

Whenever the SQL or GraphQL schema files change the following should be run

Config

Some dependencies require using bzr repository

brew install bzr
go env -w GOVCS="launchpad.net:bzr,public:git|hg,private:all"
Generate the GraphQL resolvers

Generates the GraphQL models and resolvers from schema files

go mod download github.com/99designs/gqlgen
gqlgen

Development

Run
go run ./cmd/api

Build

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags '-s -w' -o bin/main cmd/api/main.go

Jump to

Keyboard shortcuts

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