Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.15 KB

README.md

File metadata and controls

54 lines (38 loc) · 1.15 KB

go-workshop

Install & run

  1. Clone the repo & change the branch to kgorecki
  2. Get deps by running godep restore
  3. Start app: go run todo.go (runs on http://localhost:8000/)

Usage

API

method url desc
GET /tasks Gets all tasks
GET /tasks/:id Gets task for given ID
POST /tasks Creates new task
PUT /tasks/:id Updates task for given ID
DELETE /tasks Deletes all tasks
DELETE /tasks/:id Deletes task for given ID

JSON struct

{
  "id": "c9fe05cd-0912-48bf-b639-c312e701f174",
  "name": "First task",
  "done": true
}

DB

Currently works on BoltDB

TODO

Backend

  • some refactor
  • create config
  • more tests

Frontend

  • finish all funcs & refactor
  • add styles
  • move to flux

Workshop details