Create an application to store projects and their tasks using Express.
This app features all the latest tools and practices in back-end development!
- 💹 NodeJS — A web framework for NodeJS
- Clone this repo using
git clone https://github.com/yagosansz/rockseat-bootcamp2020-challenge01.git
- Move yourself to the appropriate directory:
cd rockseat-bootcamp2020-challenge01
- Run
yarn
to install dependencies
-
POST /projects
: Route gets theid
andtitle
through the Request Body and adds the project to an array of projects, following the format:{ id: "1", title: "New Project", tasks: [] }
; -
GET /projects
: Route that will list all the projects and their tasks; -
PUT /projects/:id
: Route that will update only a project's title as long as a valid id is supplied; -
DELETE /projects/:id
: Route that will delete a project as long as a valid id is supplied; -
POST /projects/:id/tasks
: Route gets thetitle
through the Request Body and store new tasks in the array of tasks, by selecting a project from the projects' list as long as a validid
is supplied through the Route Parameters.
Made with ♥ by Yago!