This is a simple to-do list application built using the MERN (MongoDB, Express.js, React, Node.js) stack. The application allows users to create, read, and delete to-do items.
- MongoDB: NoSQL database used to store to-do items.
- Express.js: Node.js web application framework used for building the server-side logic.
- React: JavaScript library used for building the user interface.
- Node.js: JavaScript runtime environment used for server-side development.
- Axios: Promise-based HTTP client for making requests to the server from the client-side React application.
Follow these instructions to get the project up and running on your local machine.
- Node.js and npm installed on your machine.
- MongoDB installed and running locally or hosted on a cloud service (e.g., MongoDB Atlas).
-
Clone the repository to your local machine:
git clone https://github.com/jaswant04/todo-app.git
-
Navigate to the project directory:
cd todo-app
-
Install server-side dependencies:
npm install
-
Navigate to the client directory:
cd client
-
Install client-side dependencies:
npm install
-
Create a
.env
file in the server directory of the project with the following environment variables:PORT=5000 MONGODB_URI=your-mongodb-uri
-
Replace
your-mongodb-uri
with your MongoDB connection URI.
-
Start the server:
npm start
-
Start the client:
npm start
-
Open your browser and navigate to
http://localhost:5713
to view the application.