This is the frontend documentation for the MERN-TodoList-App, built with React using Create React App. The frontend provides a responsive and interactive user interface for managing tasks, communicating with the backend via RESTful APIs.
🔗 Related Documentation: Main Project README | Backend README
- Task Management: Add, update, and delete tasks seamlessly through an intuitive UI.
- Responsive Design: Adapts to different screen sizes for a consistent experience on desktop and mobile devices.
- Frontend: React, JavaScript, CSS
frontend/
├── public/ # Static assets for the React app
├── src/
│ ├── components/ # React components (TodoForm, TodoList)
│ ├── App.css # Main CSS styles for the app
│ ├── App.js # Main React app component
│ ├── index.js # React entry point
├── package.json # Frontend dependencies
└── package-lock.json # Frontend dependency lock file
- Node.js (v14 or higher)
- npm or yarn
- Backend server running (see Backend README)
-
Navigate to the frontend directory
cd frontend -
Install frontend dependencies
npm install
-
Connect Frontend to Backend
- Open the
package.jsonfile in thefrontenddirectory and add the following proxy setting to connect to your backend server:"proxy": "https://your-backend-url"
- Replace
https://your-backend-urlwith the actual URL of your deployed backend (e.g., on Render orhttp://localhost:5000for local development).
- Open the
-
Start the frontend development server
npm start
🌐 Open your browser and navigate to
http://localhost:3000. -
Build for Production (Optional)
- Build the React app for production:
The built files will be in the
npm run build
frontend/builddirectory.
- Build the React app for production:
Contributions to the frontend are welcome! To contribute:
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit your changes:
git commit -m "Add feature description" - Push to GitHub:
git push origin feature-name
- Open a Pull Request.
For more details, see the Main Project README.
For queries or suggestions:
- 📩 Email: spreveen123@gmail.com
- 🌐 LinkedIn: www.linkedin.com/in/preveen-s-17250529b/