75

GitHub - fharding1/todo: A todo application with Go!

 6 years ago
source link: https://github.com/fharding1/todo
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

A clean todo web backend written in Go.

Setup

Dependencies

Migrations

migrate -path ./internal/store/migrations -database "postgres://user:pass@addr?sslmode=disable&dbname=dbname" up

Build

cd cmd/todo
go build

Configure

export TODO_POSTGRES_DSN="sslmode=disable user=user dbname=dbname"
export TODO_ADDR=":8080"
./todo

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK