This is a simple, full-stack To-Do application built with React for the frontend, Node.js and Express for the backend, and MongoDB as the database. The app supports all CRUD (Create, Read, Update, Delete) operations to manage your to-do tasks.
- Create new tasks
- Read tasks from the database
- Update task statuses (completed or pending)
- Delete tasks
- Fully functional and interactive UI built with React
- Backend powered by Node.js and Express
- Data stored in MongoDB
- Frontend: React.js
- Backend: Node.js, Express.js
- Database: MongoDB
- Others: Axios (for making HTTP requests)
To clone this repository, run the following command in your terminal:
git clone https://github.com/vishwas2628/To-Do-React.gitFollow these steps to set up the app locally on your machine.
git clone https://github.com/vishwas2628/To-Do-React.git
cd To-Do-ReactNavigate to the backend directory and install the dependencies:
cd backend
npm installNavigate to the frontend directory and install the dependencies:
cd ../frontend
npm installMake sure you have MongoDB installed and running locally or use a cloud MongoDB service like MongoDB Atlas.
In the backend directory, create a .env file and set the MongoDB URI:
MONGO_URI=your_mongodb_connection_string
Go to the backend directory and run:
cd backend
npm startGo to the frontend directory and run:
cd frontend
npm startThe app should now be live on http://localhost:8080.
Once the app is running, you can:
- Add tasks by typing in the input box and pressing Enter.
- Mark tasks as completed or pending.
- Delete tasks when they are no longer needed.
- All changes will be saved to the MongoDB database.
Here is a screenshot of the To-Do app in action:
