/Async_Todo_Backend_Project

Creating an async backend for an example of backend knowledge

Primary LanguageJavaScriptMIT LicenseMIT

Async_Todo_Backend_Project

Creating Async_Todo_Backend_Project for an example of backend knowledge

start project

  • download all dependencies for project using yarn or npm.
  • start server using yarn server or yarn start
    • yarn server is prefered more becuase of the package nodemon being used, it allows the server to restart automatically when a change is made to the backend code.
  • use routes given endpoints below

routes

  • List Route
    • get all lists created -->/api/list
    • get list by id passed in --> /api/list/:id
    • get list by name passed in --> /api/list/name/:name
    • get list of items within list, given passed in id --> /api/list/itemsinlist/:id
    • add new list to database --> /api/list/newlist
    • update list given passed in id --> /api/list/:id
    • delete list given passed in id --> /api/list/:id
  • Item Route
    • get all items created -->/api/item
    • get item by id passed in --> /api/item/:id
    • get item by name passed in --> /api/item/name/:name
    • get items that are completion value passed in /api/item/completed/:completed
    • get priority of an item given id passed in /api/item/priorityinitem/:id
    • add new item to database --> /api/item/newItem
    • update item given id passed in --> /api/item/:id
    • delete item given passed in id --> /api/item/:id
  • Priority Route
    • get all priorities created --> /api/priority
    • get priority by id passed in --> /api/priority/:id
    • get priority by priority passed in --> /api/priority/prioritylevel/:priority
    • get priority by deadline passed in --> /api/priority/deadline/:deadline
    • add new priority to database --> /api/priority/newPriority
    • update priority given id passed in --> /api/priority/:id
    • delete priority given passed in id --> /api/priority/:id