Skip to content

tolgatasci/environmental-competition-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Environment Day Competition logo

Environment Day Competition

Interactive Environmental Quiz Platform with Gamification

๐Ÿ‡บ๐Ÿ‡ธ English | ๐Ÿ‡น๐Ÿ‡ท Tรผrkรงe

Status GitHub


What is Environment Competition?

Environment Day Competition (Environmental Day Quiz) is a complete, production-ready environmental awareness and education platform that gamifies learning about sustainability through competitive quizzes. Built with modern technology (PHP + Vue.js 3), it provides 80+ features across 11 database tables, 33 API endpoints, and 13+ Vue components.

A turnkey solution for running environmental knowledge competitions - perfect for corporations, schools, NGOs, and government initiatives.


Platform Statistics

Metric Value
Total Features 80+
Database Tables 11
API Endpoints 33
Vue Components 13+
CSS Stylesheets 10 (10,000+ lines)
Sound Effects 5
Achievement Badges 9
Lines of Code 16,000+

Complete Feature List

๐ŸŽฎ Quiz System (20+ features)

  • Multiple Question Types - Standard multiple choice, Yes/No, custom options
  • Image-Based Options - Visual answer choices support
  • Real-Time Timer - Configurable countdown per question (30+ seconds)
  • Score Calculation - Base points + time bonus + streak bonus
  • Answer Feedback - Instant correct/incorrect display with explanations
  • Environmental Tips - Eco-tips shown after each answer
  • Sound Effects - Audio feedback for correct/wrong answers
  • Visual Animations - Eco-themed animations and effects
  • Progress Tracking - Quiz completion percentage
  • Pause/Resume - Continue quiz where you left off
  • Question Randomization - Random question order per session
  • Difficulty Levels - Easy, medium, hard questions (1-3)
  • Category Classification - Organize questions by topic
  • Time-Based Scoring - Faster answers earn higher bonuses
  • Streak Bonuses - Consecutive correct answers multiply points
  • HTML Content Support - Rich text in questions
  • Info Text After Answer - Educational explanations
  • Custom Point Values - Configure points per question
  • Active/Inactive Questions - Toggle question availability
  • Question Import/Export - Bulk CSV/JSON operations

๐Ÿ† Gamification System (15+ features)

  • 9 Achievement Badges:
    • "Eco-Friendly" - First correct answer
    • "Knowledgeable Environmentalist" - 5 correct answers
    • "Environmental Expert" - 10 correct answers
    • "Point Hunter" - 50 points earned
    • "Point Star" - 100 points earned
    • "Point Champion" - 200 points earned
    • "Streak Master" - 3 consecutive correct
    • "Streak Champion" - 5 consecutive correct
    • "Tree Friendly" - 5 trees planted
    • "Forest Protector" - 10 trees planted
  • Tree Planting Mechanic - 1 tree per correct answer (configurable)
  • Visual Tree Counter - Track environmental impact
  • Streak Tracking - Current and best streak display
  • Leaderboard - Real-time rankings
  • Score History - Track performance over time
  • Badge Earning Notifications - Celebratory feedback
  • Progress Visualization - Visual completion indicators
  • Cumulative Statistics - Total trees planted across all users

๐Ÿ‘ค User Features (12+ features)

  • User Registration - Multi-field validated form
  • KVKK Compliance - Turkish Data Protection Law support
  • Employee ID Tracking - Corporate user identification
  • Phone Validation - Format verification
  • Duplicate Prevention - No repeat registrations
  • Session Assignment - Users linked to quiz sessions
  • Profile Information - Name, contact, department
  • Results Dashboard - Detailed performance breakdown
  • Completion Percentage - Visual progress display
  • Social Sharing - Share results on social media
  • Performance Statistics - Correct/wrong counts, streaks
  • Badge Collection - View earned achievements

๐Ÿ“Š Leaderboard & Results (8+ features)

  • Real-Time Rankings - Live score updates
  • Session-Based Filtering - Rankings per quiz session
  • Top Performers Display - Highlight winners
  • Score-Based Sorting - Automatic ranking
  • User Statistics - Individual performance metrics
  • Export to Excel - Download leaderboard data
  • Responsive Tables - Mobile-friendly display
  • Search/Filter - Find specific participants

๐Ÿ”ง Admin Panel (30+ features)

Dashboard & Analytics

  • Real-Time Statistics - Participants, questions, answers, trees
  • Visual Charts - Answer accuracy pie charts
  • Category Distribution - Question topic breakdown
  • Weekly Trends - Registration patterns
  • Response Time Analytics - Performance by difficulty
  • Most-Missed Questions - Identify difficult topics

Question Management

  • Create Questions - Full CRUD operations
  • Edit Questions - Modify all attributes
  • Delete Questions - Remove with confirmation
  • Bulk Import - CSV/JSON question import
  • Export Questions - Download question bank
  • Rich Text Editor - HTML content support
  • Image Upload - Add images to options
  • Difficulty Settings - Set question level
  • Category Assignment - Organize by topic
  • Status Toggle - Active/inactive control
  • Search & Filter - Find questions quickly
  • Pagination - Handle large question banks

Session Management

  • Create Sessions - Set up new quiz events
  • Session Scheduling - Define start/end times
  • Registration Duration - Control signup period
  • Quiz Duration - Total time limits
  • Session Status Tracking:
    • Scheduled
    • Registration Open
    • Active (quiz running)
    • Completed
  • Delete Sessions - Remove with data
  • Reset User Stats - Clear session data
  • Timeline Management - Visual session flow

User Management

  • View All Participants - Complete user list
  • Participant Statistics - Individual performance
  • Delete User Data - GDPR compliance
  • Reset Individual Stats - Clear specific user
  • Export User Data - Download participant info
  • Registration Tracking - Monitor signups

Administrator Management

  • Multiple Admin Accounts - Team access
  • Role Types - Regular admin, full admin
  • Create Admins - Add new team members
  • Edit Credentials - Update admin info
  • Password Management - Secure password changes
  • Delete Admins - Remove access
  • Last Login Tracking - Activity monitoring

Settings Configuration

  • Quiz Title - Custom branding
  • Questions Per Quiz - Configure count
  • Base Points - Set scoring values
  • Time Bonus Factor - Speed rewards
  • Streak Bonus Factor - Combo rewards
  • Feature Toggles:
    • Leaderboard visibility
    • Sound effects
    • Animations
    • Eco-tips display
  • Trees Per Answer - Environmental impact ratio
  • KVKK Text - Customize consent text
  • Reset All Settings - Restore defaults

Backup & Recovery

  • Create Backups - Database snapshots
  • List Backups - Available restore points
  • Restore Backup - Recover data
  • Delete Old Backups - Cleanup storage
  • Timestamp Tracking - Backup history
  • Integrity Checks - Verify backup health

๐ŸŒฟ Environmental Education (10+ features)

  • 15+ Pre-loaded Eco-Tips covering:
    • Energy conservation
    • Transportation choices
    • Water management
    • Waste reduction
    • Food consumption
    • Recycling practices
  • Tips Display - Shown on results pages
  • Question-Associated Tips - Context-relevant advice
  • Categorized Content - Organized by topic
  • Customizable Tips - Add your own content
  • Educational Facts - Environmental statistics
  • Sustainability Practices - Actionable advice

๐Ÿ” Security Features (10+ features)

  • JWT Authentication - Secure admin access
  • KVKK Compliance - Data protection law
  • User Consent Recording - Permission tracking
  • Input Validation - Server-side checks
  • SQL Injection Prevention - Secure queries
  • XSS Protection - Output sanitization
  • Session Management - Secure session handling
  • Password Hashing - Bcrypt encryption
  • Unique Session IDs - Prevent conflicts
  • Status Validation - Session state checks

๐ŸŽจ UI/UX Features (15+ features)

  • Responsive Design - Mobile-first approach
  • Dark/Light Theme Support - Visual preferences
  • Smooth Animations - Polished interactions
  • Color-Coded Feedback - Green/red indicators
  • Progress Indicators - Visual completion
  • Modal Dialogs - Clean interactions
  • Toast Notifications - User feedback
  • Icon System - Consistent iconography
  • Accessibility Features - WCAG compliance
  • Loading States - Progress feedback
  • Error Handling - User-friendly messages
  • Real-Time Updates - Live data refresh
  • Sound Effects - 5 audio files included
  • Visual Assets - 67 images/animations
  • Custom CSS - 10,000+ lines of styling

โšก Technical Features (10+ features)

  • Vue.js 3 - Modern reactive frontend
  • Vue Router 4 - SPA navigation
  • RESTful API - Standard JSON responses
  • SQLite Database - Portable, no setup
  • MySQL Compatible - Enterprise option
  • No Build Required - Vanilla JS modules
  • Apache Ready - .htaccess included
  • Modular Architecture - Clean code structure
  • Event-Driven Quiz - State management
  • LocalStorage - Client-side persistence

Performance

Metric Target Achieved
Page Load < 2s < 1.5s
API Response < 200ms < 100ms
Quiz Start < 1s < 500ms
Score Calculation Real-time Instant

Tech Stack

Layer Technology
Backend PHP 7.4+, SQLite/MySQL
Frontend Vue.js 3, Vue Router 4
Styling Custom CSS (10,000+ lines)
Authentication JWT Tokens
Database SQLite (portable) / MySQL
Media MP3 Audio, PNG/GIF Images

Use Cases

  • Corporate CSR Programs - Employee engagement & sustainability training
  • Educational Institutions - Student eco-curriculum support
  • Environmental NGOs - Public awareness campaigns
  • Government Initiatives - Earth Day celebrations
  • Marketing Campaigns - Brand engagement through gamification

What's Included

  • Complete source code (16,000+ lines)
  • Database schema with seed data
  • Admin panel fully configured
  • User-facing quiz interface
  • 33 API endpoints documented
  • 10 CSS stylesheets (responsive)
  • 5 sound effects
  • 67 visual assets
  • 9 achievement badges
  • 15+ eco-tips database
  • Ready for deployment

Ideal For

  • Corporations running environmental awareness programs
  • Schools teaching sustainability
  • NGOs building engagement campaigns
  • Government promoting eco-initiatives
  • Developers needing white-label quiz solution

Contact & Purchase

GitHub

Contact me on GitHub for pricing and demo access!


Environment Day Competition - Interactive Environmental Quiz Platform
Copyright 2025 - All Rights Reserved

About

An interactive environmental competition game designed to teach sustainability, ecology, and environmental awareness through fun challenges and score-based gameplay.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors