This is a full-stack todo application built using the MERN (MongoDB, Express.js, React, Node.js) stack. The app allows users to add, edit, delete, and retrieve todos. All operations are performed directly on the database, ensuring data persistence.
- Add new todos
- Edit existing todos
- Delete todos
- Retrieve all todos from the database
- Permanent storage of todos in MongoDB
- React + Vite
- Axios for data fetching
- Props for data management
- Node.js
- Express.js for routing
- MongoDB for data storage
- dotenv for environment variable management
-
Clone the repository:
git clone https://github.com/Vegadjay/Mern_Todo.git
-
Frontend setup:
cd frontend npm install npm run dev
-
Backend setup:
cd backend npm install
-
Create a
.env
file in the backend directory and add your MongoDB URL:MONGODB_URL=your_mongodb_connection_string
-
Start the backend server:
node index.js
- GET all todos:
/todos
- CREATE a new todo:
/todos
- UPDATE a todo:
/todos/update/:title
- DELETE a todo:
/todos/delete/:title
The app uses a simple MongoDB structure with a single collection named todo
to store all todo items.
Future plans include deploying this project on Vercel.
This is the open source project and include many issue if you want to contribute in this repo simple fork this repo and start solving all the issues and open pull request and start your open source journey from here..
MIT License
Copyright (c) 2024 Jay Vegad
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.