THIS IS TASK MANAGEMENT SERVER BUILD USING NODE.JS, MONGO-DB AND TWILIO.
-
Clone the repository:
git clone <REPO_LINK> cd task_management_server
-
Install dependencies:
npm install
-
Set up Enviornment Variables On the
.env
file add the variables:MONGO_URL="" JWT="" TWILLO_ACCOUNT_SID="" TWILLO_AUTH_TOKEN=""
npm run watch // Run this in one terminal
npm run dev // Run this on another terminal
1st command compiles the typescript to javascript.
POST /user/register
: Register the userGET /user/:userId
: Get User Details
POST /task/
: Create a task.GET /task/
: Get all tasks of the user.PATCH /task/:taskID
: Update the particular taskDELETE /task/:taskId
: Soft delete the task
POST /subtask/
: Create the subtask of a taskGET /subtask/
: Get all the subtasks of the task.PATCH /task/:taskId
: Update the particular sub-task.DELETE /task/:taskId
: Delete the particular sub-task.
-
Priority Assign
- This cron is scheduled to run every midnight at 0000 Hrs to update the priority of each task which is calculated on the basis of the proximity of due date. -
Calling Reminder
- This cron bascically runs every hour and sees if task is due then it calls the user and gives a reminder.