- Clone the repository
- Run
npm install
to install dependencies - Start the application with
npm start
express
- Web framework for Node.jsmoment
- JavaScript library for working with dates and timesbody-parser
- middleware for parsing request bodiespath
- module for working with file pathsfs
- module for working with the file system
- The
/tasks
route with HTTP POST method allows you to add a new task to the system. - The
/tasks/:id
route with HTTP PATCH method allows you to update a task by id. - The
/tasks/:id
route with HTTP DELETE method allows you to delete a task by id.
app.js
- the main file that starts the server and handles requestsviews/index.ejs
- the view for the homepagedata/tasks.json
- the file where tasks are stored