/TodoList

Primary LanguageJavaScript

Todo Application

Welcome to the Todo Application! This is a simple and interactive todo list application built

with React for the frontend and Node.js with Express and MongoDB for the backend.

Features

Add new todo items Mark todo items as complete Delete todo items Edit existing todo items Responsive UI

Installation

To get a local copy up and running, follow these simple steps:

Prerequisites

Make sure you have the following installed on your machine: • Node.js • npm (Node Package Manager) • MongoDB

Backend Setup

Clone the repository: git clone https://github.com/Collinswarui/TodoList.git

Install NPM packages on the root folder: npm install

Create a .env file in the root directory and add the following content:

start the server npm run start

Frontend Setup

Navigate to the frontend directory: cd client

Install NPM packages: npm install

Start the frontend development server: npm run dev

The application should now be running at http://localhost:5173/ fot the frontend and http://localhost:3000/ for the backend

Usage

Adding a Todo

Click the + button at the bottom right of the screen to open the popup, enter your todo, and click "Add Task".

Marking a Todo as Complete

Click on the todo item to mark it as complete.

Editing a Todo

Click the pen icon on the right of a todo item to open the edit popup, change the text, and click "Update Task".

Deleting a Todo

Click the x button on the right of a todo item to delete it.