Skip to content

poga/ListRGB

Repository files navigation

screenshot

ListRGB

Collaboration with Color.

Installation

requirements:

  • node.js (tested on 0.10.28 and 0.10.29)
  • npm (tested on 1.4.10 and 1.4.14)
  • redis (tested on 2.8.12)
  • bower

Download & Build

$ git clone git@github.com:poga/ListRGB.git
$ bower i
$ npm i
$ npm run prepublish

Development

$ npm run dev

Production

pm2 is recommanded for production server.

$ pm2 start process.json

REST API

GET /_/:list

return the list.

POST /_/:list/entries, body: { "text" : "foo" }, content-type: "application/json"

add entry "foo" to the list.

PUT /_/:list/title, body: { "text" : "foo" }, content-type: "application/json"

set the title of the list to "foo"

PUT /_/:list/desc, body: { "text" : "foo" }, content-type: "application/json"

set the description of the list to "foo"

PUT /_/:list/entries/:eid, body: { "text" : "foo" }, content-type: "application/json"

update the text of specified entry to "foo"

DELETE /_/:list/entries/:eid

delete the entry

GET /_/:list/stats

return the statistic of list.

GET /_/:list/feedbacks/:user-id

return the feedback(colors) from the user on the list

POST /_/:list/feedbacks/:user-id, body: { "entryId" : id, "color": green/red/blue/none }, content-type: "application/json"

set the color from the user one the entry to color

License

MIT

Logo designed by @shulusama

About

Collaboration with Color

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published