This project is a simple voting application with the following features:
- Login Page: Allows users to log in.
- Register Page: Allows new users to register.
- Voting Page:
- Accessible only after user login.
- Users can select one candidate and vote.
- Users cannot vote multiple times.
- If a user has already voted, a message appears: “You already voted.”
- Users can log out, and the session should expire.
- Admin Home Page:
- Accessible only after admin login.
- Displays the vote count for each candidate.
- Admin can log out.
- User authentication (login/register).
- Voting system with vote tracking.
- Session management to prevent multiple votes.
- Admin page to monitor vote counts.
- React for the frontend.
- Tailwind CSS for styling.
- Local Storage to Store Data
- In-memory data storage for simplicity (you can switch to a database like MongoDB or PostgreSQL as needed).
- Clone the repository:
git clone https://github.com/rednet09/voting-app.git cd voting-app