Skip to content

karolgorecki/todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published