hugomd / go-todo

Simple API using Gin and Gorm (Postgres) to get a feel for Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple API using Gin and Gorm (Postgres) to get a feel for Golang


Languages

Language:Go 93.9%Language:Shell 6.1%