- Clone this Repo
cd
intojugs-node-rest-server
- Run
npm install
- Run
coffee -c src -o lib
Create a db.json
in the data
folder.
{
"tasks": [
{
"id": "30CFB87C-0365-4A50-9E70-C91BB046BD37",
"title": "Prepare for JUGS Session",
"dueDate": "2015-05-21T13:15:06.449Z",
"done": true
}
]
}
Start the server with npm start
GET /tasks
GET /tasks/30CFB87C-0365-4A50-9E70-C91BB046BD37
POST /tasks
PUT /tasks/30CFB87C-0365-4A50-9E70-C91BB046BD37
DELETE /tasks/30CFB87C-0365-4A50-9E70-C91BB046BD37
Please see json-server for more information and advanced usage