/ToDoApp

Primary LanguageJavaScript

ToDoApp

This is a simple web-based Todo application built with Node.js, Express, MongoDB, HTML, and EJS. It allows users to create tasks with priority, mark tasks as completed or canceled, and delete tasks from the list.

Technologies Used

  • HTML
  • CSS
  • Node.js
  • Express.js
  • EJS
  • MongoDB with Mongoose

Installation

Clone the repository:git clone https://github.com/akshitasemwal/ToDoApp.git

Install the dependencies:
cd ToDoApp
npm install

Start the server:nodemon app.js

Open a web browser and go to http://localhost:3001 to view the to do app.

Usage

Creating a Task
To create a new task, enter the task description and priority in the input fields and click the "+" button. Priority can be between 1-9 only.
The task will be added to the list, along with its index and a square bracket on the right side stating its status.

Listing Tasks
All tasks will be displayed in the order of their priority with their index number and square bracket.
The square bracket will be empty for pending tasks, and it will be marked with a tick mark for completed tasks and a cross mark for canceled tasks.
The tasks will also be sorted based on their status(pending, canceled, completed).

Marking a Task as Completed or Canceled
To mark a task as completed or canceled, select an option from the list.
The bracket will be updated with a tick mark for completed tasks and a cross mark for canceled tasks.

Deleting a Task
To delete a task from the list, click the "Delete" button beside the task description.

Task Report
You can view the report of all tasks by clicking the "Report" button.
The report will display the count of pending, canceled, deleted, and completed tasks.

Authentication
Registering users' password is saved after encryption.
Authentication of the logging in users to provide access to the todo list. It is done using jwt tokens.

Demo on: https://todoapp-r4r3.onrender.com