Quick Start
Quick Start Guide
This guide will help you verify the application flow by simulating a real-world voting scenario.
Prerequisites
Ensure you have completed the Installation Guide and both the Backend and Frontend servers are running.
- Frontend: http://localhost:5173
- Backend: http://localhost:8080
Walkthrough
1. Admin: Create an Election
- Navigate to http://localhost:5173/login.
- Login with the default Admin credentials:
- Email:
admin@voting.com - Password:
admin123
- Email:
- On the Admin Dashboard:
- Click “Create Election”.
- Enter details (e.g., “General Election 2024”).
- Change the election status to
SCHEDULED, thenACTIVEto allow voting. - Note: To add candidates, you must first register other users and use their User IDs.
2. User: Register & Verify
- Log out or open an Incognito window.
- Navigate to http://localhost:5173/register.
- Fill in the registration form using the Seeded Dummy Data for verification.
- Click Register. If the details match the dummy data, registration will succeed.
3. User: Vote
- Login with your newly created user credentials.
- On the User Dashboard, locate the Active Election you created earlier.
- Click Vote Now.
- Select a candidate and confirm your vote.
- The button will update to “You Voted”.
4. Admin: View Results
- Log back in as Admin.
- Navigate to the election card on the dashboard.
- Click Calc Results (if required) then View Results.
- You will see the updated vote counts.
Default Accounts
| Role | Password | |
|---|---|---|
| Admin | admin@voting.com |
admin123 |
| Admin (Backup) | admin.secondary@voting.com |
admin123 |