gophersilesia / todolist-frontend

The frontend for the todo list workshop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Polymer Todo list

This project is based on the official version of the Polymer TodoMVC, slightly modified to use a REST endpoint.

Get Started

You will need to have npm and therefore nodejs installed locally.
See how to install it for OSX, Linux and Windows.

1. Install the project dependencies with bower.

$ bower install

2. If you have python installed locally:

$ python -m SimpleHTTPServer
# Head to http://localhost:8000/

If you don't, then polyserve will prove useful.

$ npm install polyserve -g
$ polyserve -p 8000
# Head to http://localhost:8000/components/todomvc-polymer/

API

The expected backend API should implement the following endpoints.

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

The endpoints return JSend-formatted JSON.

About

The frontend for the todo list workshop


Languages

Language:HTML 100.0%