go-api

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 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

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/locald

Build

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

Directories

Path Synopsis
aws
cmd
locald command
satimotod command

Jump to

Keyboard shortcuts

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