This is the frontend for the Todo App built with React and Vite. It allows users to manage their tasks by adding, viewing, and deleting notes. The frontend communicates with the backend hosted on Render.
- Prerequisites
- Environment Variables
- Installation
- Running the Frontend
- Features
- Backend Repository
- Deployment
- CORS Configuration
- License
- Troubleshooting
- Contact
Ensure you have the following installed:
- Node.js (v16 or higher)
- A backend service running (check Backend Repository)
Create a .env
file in the root directory to store any environment-specific variables, such as:
VITE_API_URL=Your backend deployment site
This ensures the frontend communicates with the backend API.
Clone the repository:
git clone <frontend-repo-url>
cd <repository-folder>
Install dependencies:
npm install
To start the frontend locally:
npm run dev
This will start the development server, usually accessible at http://localhost:5173
.
- Add, view, and delete notes
- Real-time updates on note addition or deletion
- Communicates with backend API for data persistence
The backend service for this app is hosted on Render.
Check out the Todo App Backend Repository for more details.
You can access it here.
The frontend is deployed on Vercel. You can access it here.
The backend is configured to allow requests from the Vercel frontend:
app.use(
cors({
origin: "Your frontend deployment site",
methods: ["GET", "POST", "DELETE"],
})
);
Ensure your backend origin matches your Vercel deployment URL.
This project is licensed under the MIT License.
- CORS Errors: Ensure both the frontend and backend URLs are correct and CORS policies match.
- API URL Issues: Double-check the
VITE_API_URL
value in your.env
file. - Backend Connectivity: Ensure the backend is running and accessible at the specified URL.
If you have any questions or need support, feel free to reach out to:
Mayur Dilip Kamble
Email: [email protected]