Todo app written in Golang, connects to PostgreSQL database, and includes docker image.
Build a Go server side application exposing an API for managing a to do list
- GET "/" displays welcome page of deployed server
- GET "/todos" displays list of todos
- POST "/todos" adds a new todo item to the list
- DELETE "/todos/:id" deletes the todo item by the id
- PATCH "/todos/:id" Updates any edits on a todo item by id
- PATCH "/todos/:id/done" Updates "completed" field to true
Deployed server here
go get -d github.com/fionwan/todoApp
cd $GOPATH/src/github.com/fionwan/todoApp
docker build -t todoapp .
docker run -it todoapp
go build
./todoApp
cd /handlers
psql create database todosDB;
psql todosDB < ./migrations.sql
go test