Skip to content
Simple API using Gin and Gorm (Postgres) to get a feel for Golang
Branch: master
Clone or download
Latest commit 98f1681 Jan 25, 2018

README.md

go-todo

Simple to do list API with Gin and Gorm (with Postgres)

Docker

Clone this repository and run:

docker-compose up

You can then hit the following endpoints:

Method Route Body
GET /tasks
POST /tasks {"title": "task title"}
DELETE /tasks/:id
PUT /tasks/:id {"title": "task title", "completed": true}

Development

Installing

I'm using dep:

dep ensure

Running locally

go run main.go
You can’t perform that action at this time.