https://cpsc2600-dsingh014.herokuapp.com/
- Download all files on your local storage
- Install required dependencies by running "npm run dev"
- Type "localhost:8080" in your web browser to see running app
This app helps creating Todo list in detail. You could have main task and some subtasks under the main task. nce you complete each subtask, click checkbox. It will be removed from list. When all subtasks are finished, means you have completed all required tasks and you could delete the main task.
-
Choosing number of subtasks and displaying corressponding nuumber of fields
-
Validating that each field contain required data
-
Deleting subtask document and that subtask from the main task document
-
Updating task as subtasks get completed
-
Write name of task.
-
Write description which should be atleast characters long.
-
Choose priority.
-
Select number of subtasks between 0 and 5. Depending on selection, the number of fields will be appeared. Fill fields and click add task button.
-
if there will be no error, the task will be displayed under my tasks.
-
There will task name, description and some subtasks having checkboxes. Click on checkbox after you completed subtask. It will delete subtask from list. when there will be no subtask left, you will get delete button to delete the task.
- get('api/v1/tasks) returns all tasks
- get('api/v1/tasks/id) returns the task with id supplied in url
- get('api/v1/subtasks) returns all subtasks
- get('api/v1/subtasks/id) returns the subtask with id supplied in url
- post('api/v1/tasks) post a task
- post('api/v1/subtasks) post a subtask
- delete('api/v1/tasks/id) delete the task with the given id
- delete('api/v1/subtasks/id) delete the subtask with the given id
- put('api/v1/tasks/id) updates the task with the given id
Expected Post body format:
- Task
{
data:task,
url:
/api/v1/tasks/${task._id}
} - Subtask
{
data:subtask,
url:
/api/v1/subtasks/${task._id}
}