timesheet-nodejs-mongo
timesheet-nodejs-mongo copied to clipboard
timesheet-nodejs-mongo
timesheet-nodejs-mongo
INIT (populateDB)
http://localhost:[PORT]/init
- Creates collections:
- timesheet
- project
- user
- categories
- activities
- timesheet
LAUNCH LOCALLY
-
dev:
node server.js dev -
minified js & compiled less
node server.js
URLs
- Categories
GET /categories=> Get all categories with all their projectsPOST /categories=> Create a new category with no projectsGET /categories/:id=> Get a single category with all its projectsDELETE /categories/:id=> Delete a category with all its projectsPUT /categories/:id=> Replace a category with the data passed in the bodyPATCH /categories/:id=> Update a category with the data passed in the body
- Projects
GET /projects=> Get all projects of a categoryPOST /projects?category_id==> Create a new project assigned to a specified categoryGET /projects/:id=> Get a single project of a categoryDELETE /projects/:id=> Remove a project from a categoryPUT /projects/:id=> Replace a project with the data passed in the bodyPATCH /projects/:id=> Update a project with the data passed in the body
- Activities
GET /activities?[user=][&year=][&month=]=> Get all activities by user, year and/or monthPOST /activities=> Create a new activity with the data passed in the bodyDELETE /activities/:id=> Delete an activityGET /activities-:year-:month.csv=> Export all activities of the specified month formatted in CSV
Pour info :
- Tutorial: http://coenraets.org/blog/2012/10/creating-a-rest-api-using-node-js-express-and-mongodb/
- Zepto: http://zeptojs.com/
- Require: http://requirejs.org/
- Angular: http://angularjs.org/
- Underscore: http://underscorejs.org/
- Less: http://lesscss.org/
- Fundation 3: http://foundation.zurb.com/
- Batch (icon): http://adamwhitcroft.com/batch/
- Login system: https://github.com/braitsch/node-login