A todo app backend in Go, written in an attempt to demonstrate a minimalistic and idiomatic backend that can be used as an example to build web APIs.
- Routing
- Middlewares
- Rich error response
- Ease of extension
- Logging
- github.com/julienschmidt/httprouter
- gopkg.in/yaml.v2
go get github.com/mantishK/galore
cd $GOPATH/github.com/mantishK/galore
go get ./...
Configurations can be overridden either via file or command line arguments
File
Copy config/config.yaml
to any path and set the path name as environment variable "GALORE_CONFIG".
e.g -
cp $GOPATH/github.com/mantishK/galore/config/config.yaml /tmp/
export GALORE_CONFIG=/tmp/config.yaml
Flags
Configurations can be set as arguments while running the application
e.g -
galore -pg_uname=postgres -pg_pass="" -pg_name=todo -pg_ip=192.168.59.103 -pg_port=5432
The sql dump required for Galore is available at extra/galore.sql
Download the collection from this link
cd $GOPATH/github.com/mantishK/galore
go run main.go
go install github.com/mantishK/galore
galore
Contributions welcome via Github pull requests and issues.
Most of my work is heavily inspired by MatRyer's talk at Golang UK Conference held at London.
This project is licensed under the MIT License. Please refer the License.txt file.