A simple web application for managing tasks, featuring full CRUD operations and user authentication. The app consists of a React frontend and a Node.js/Express backend, with data stored in MongoDB Atlas.
- User Authentication: Secure user registration and login.
- Task Management:
- Create: Add new tasks.
- Read: View all tasks.
- Update: Edit tasks.
- Delete: Remove tasks.
- Frontend: Located in the
todofolder, built with React. - Backend: Located in the
backendfolder, built with Node.js and Express.
- Node.js
- Visual Studio Code
-
Clone the repository:
git clone <repository-url>
-
Navigate to the project directory:
cd todo-app -
Install dependencies:
-
Frontend:
cd todo npm install -
Backend:
cd backend npm install
-
-
Start the frontend:
cd todo npm start -
Start the backend:
cd backend npm run dev -
Open your browser and navigate to
http://localhost:3000to use the app.
Ensure the following environment variables are set in the backend/.env file:
PORT = 4000
JWT_SECRET = keyjwtsecret
MONGODB_URI = mongodb://localhost:27017/prod2
FRONTEND_URL = http://localhost:3000
Contributions are welcome! Feel free to fork the repository and submit pull requests.
This project is licensed under the MIT License.