Skip to content

hugostech/voting-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup Instructions

  1. Create Project Structure

    mkdir voting-system
    cd voting-system
    mkdir -p frontend/src/{components,services}
    mkdir -p backend/src/{models,routes,middleware,services,config,scripts}
  2. Copy Files

    • Copy all the code blocks above into their respective files
    • Make sure file paths match the structure shown
  3. Install Dependencies

    # Backend
    cd backend
    npm install
    
    # Frontend
    cd ../frontend
    npm install
  4. Environment Setup

    • Create .env files in both backend and frontend directories
    • Update the environment variables as needed
  5. Docker Deployment

    # From project root
    docker-compose up --build
    
    # Seed the database
    docker-compose exec backend npm run seed
  6. Access Application


Key Features

  • ✅ Email verification voting system
  • ✅ Admin panel with 20x vote weight
  • ✅ Real-time vote tracking
  • ✅ Responsive design with Tailwind CSS
  • ✅ Docker containerization
  • ✅ MongoDB database
  • ✅ JWT authentication
  • ✅ Rate limiting and security
  • ✅ Error handling and validation

About

voting system for uoa

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published