Todo App Click here.
This is a Todo App developed using React and Express. It allows users to manage their tasks by adding, editing, and deleting them. The app fetches data from a backend API and displays the tasks in a table format.
- Add, edit, and delete tasks
- Fetch tasks from a backend API
- Display tasks in a table format
You can try out the live demo of the Todo App here.
- React
- Express
- MongoDB
- Axios
- Bootstrap
To run the Todo App locally, follow these steps:
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd todo-app
-
Install the dependencies:
npm install
-
Start the frontend:
npm start
The app will be available at
http://localhost:3000
. -
Start the backend:
node server.js
The backend server will be available at
http://localhost:5000
.
GET /contactlist
: Get all tasksPOST /contactlist/add
: Add a new taskPUT /contactlist/update/:id
: Update a task by IDDELETE /contactlist/delete/:id
: Delete a task by ID
The following environment variables are used in the application:
PORT
: The port on which the server will run (default: 5000)connectionString
: MongoDB connection string
Make sure to set these environment variables before starting the server.