Skip to content

Ayush22042004/ClickVote

Repository files navigation

ClickVote – Online Voting System

🚀 Live Website: https://greatwarrior22.pythonanywhere.com/

ClickVote is a secure, role-based online voting platform built using Flask and deployed on PythonAnywhere.
It is designed for smooth, transparent, and secure elections for colleges and organizations.

🌐 Live Demo

🔗 https://greatwarrior22.pythonanywhere.com/

✨ Features

🔐 Authentication

  • Login & Signup
  • Forgot password (email-based reset)
  • Secure session management

🧑‍💼 Role-Based Dashboards

Admin

  • Create & schedule elections
  • Manage voters
  • Approve candidates
  • Monitor website traffic
  • View results & past elections

Voter

  • View active elections
  • See candidate profiles
  • Cast vote (strict one-vote rule)
  • View results after polls close

Candidate

  • Manage candidate profile
  • Display campaign info
  • Track election status

📊 Election Workflow

  • Automated election timing
  • Candidate listings
  • Secure vote submission
  • Real-time results
  • Archives of past elections

📈 Analytics

  • User activity tracking
  • Admin traffic panel (via traffic_analysis.py)

🛠️ Tech Stack

Component Technology
Backend Flask (Python)
Frontend HTML, CSS, JavaScript
Database SQLite
Hosting PythonAnywhere
Server WSGI
Emails SMTP

📂 Project Structure

ClickVote/ ├── app.py ├── traffic_analysis.py ├── requirements.txt ├── .env.example │ ├── static/ │ ├── style.css │ ├── theme.css │ └── images/ │ └── templates/ ├── login.html ├── signup.html ├── admin_dashboard.html ├── voter.html ├── vote.html ├── results.html ├── past_elections.html └── more...

⚙️ Local Installation

1️⃣ Clone the Repository

git clone https://github.com/Ayush22042004/ClickVote.git cd ClickVote

2️⃣ Create Virtual Environment

python -m venv venv venv\Scripts\activate # Windows source venv/bin/activate # Linux/Mac

3️⃣ Install Dependencies

pip install -r requirements.txt

4️⃣ Create .env

SECRET_KEY=your_secret_key EMAIL_USER=your_email EMAIL_PASS=your_email_password

5️⃣ Run App

python app.py

Runs at: http://127.0.0.1:5000

☁️ Deploying on PythonAnywhere

  1. Upload or git pull your repo
  2. Create a virtual environment
  3. Install requirements
  4. Configure WSGI
  5. Add environment variables
  6. Reload app

Your site goes live 🚀

🤝 Contributing

PRs and suggestions are welcome.

📜 License

Free to use and modify.

🧑‍💻 Author

Made by Ayush Singh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors