Skip to content

BeOpenSourceLLC/timesheet-nodejs-mongo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

174 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

timesheet-nodejs-mongo

INIT (populateDB)

http://localhost:[PORT]/init

  • Creates collections:
    • timesheet
    • project
    • user
    • categories
    • activities

LAUNCH LOCALLY

  • dev:

    node server.js dev

  • minified js & compiled less

    node server.js

URLs

  • Categories
    • GET /categories => Get all categories with all their projects
    • POST /categories => Create a new category with no projects
    • GET /categories/:id => Get a single category with all its projects
    • DELETE /categories/:id => Delete a category with all its projects
    • PUT /categories/:id => Replace a category with the data passed in the body
    • PATCH /categories/:id => Update a category with the data passed in the body
  • Projects
    • GET /projects => Get all projects of a category
    • POST /projects?category_id= => Create a new project assigned to a specified category
    • GET /projects/:id => Get a single project of a category
    • DELETE /projects/:id => Remove a project from a category
    • PUT /projects/:id => Replace a project with the data passed in the body
    • PATCH /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 month
    • POST /activities => Create a new activity with the data passed in the body
    • DELETE /activities/:id => Delete an activity
    • GET /activities-:year-:month.csv => Export all activities of the specified month formatted in CSV

Pour info :

About

Timesheet app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published