Skip to content
HACKWAVE2025Public

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

ย 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

GameEco ๐ŸŒฟ

Small Clicks, Big Impact

GameEco is an innovative eco-gamification mobile application that transforms environmental consciousness into engaging, interactive experiences. The app encourages sustainable living through gamified activities, task completion, and AI-powered verification systems.

Flutter Firebase Node.js Google AI

๐ŸŒŸ Features

๐ŸŽฎ Dual Mode Experience

  • Kid Mode (Under 15): Gamified learning experience with the EcoSort game
  • Next-Gen Mode (15+): Task-based environmental challenges with real-world impact

๐ŸŽฏ Core Functionality

  • ๐Ÿ” Multi-Authentication System: Google OAuth and Email/Password authentication
  • ๐Ÿ“ฑ Role-Based Dashboards: Customized experiences for different user types
  • ๐ŸŽฎ EcoSort Game: Interactive drag-and-drop recycling game with scoring system
  • ๐Ÿ“‹ Daily Environmental Tasks: Real-world eco-friendly challenges
  • ๐Ÿ“ธ AI-Powered Task Verification: Smart photo verification using Google Gemini AI
  • โญ Eco Points System: Gamified reward system for completed activities
  • ๐ŸŽจ Interactive Onboarding: Beautiful flashcard-style introduction screens

๐ŸŽฒ EcoSort Game Features

  • Real-time gameplay with 60-second rounds
  • Three sorting categories: Recycle, Organic, and Trash
  • Streak-based scoring system
  • Dynamic difficulty progression
  • Coin rewards based on performance

๐Ÿ“‹ Daily Tasks System

  • 6 Different eco-friendly activities:
    • Plastic waste collection
    • Sapling plantation
    • Avoiding single-use plastics
    • Using public transport/walking
    • Saving electricity
    • Educating friends about sustainability
  • Camera integration for proof submission
  • AI verification of task completion
  • Real-time status tracking

๐Ÿ› ๏ธ Tech Stack

Frontend (Mobile App)

  • Framework: Flutter (Dart)
  • State Management: StatefulWidget with setState
  • UI Components: Material Design 3
  • Navigation: Flutter Navigation 2.0

Backend Services

  • Authentication: Firebase Auth with Google Sign-In
  • Database: Cloud Firestore (NoSQL)
  • File Storage: Cloudinary (Image hosting)
  • AI Service: Google Gemini AI (Image verification)

Backend API Server

  • Runtime: Node.js with Express
  • AI Integration: Google GenAI SDK
  • Image Processing: Cloudinary API
  • Deployment: Vercel

Key Dependencies

Flutter Dependencies

dependencies:
  firebase_core: ^3.4.0
  firebase_auth: ^5.3.1
  google_sign_in: ^6.2.1
  cloud_firestore: ^5.6.12
  camera: ^0.11.0+2
  permission_handler: ^11.3.1
  http: ^1.2.2
  cupertino_icons: ^1.0.8

Backend Dependencies

{
  "@google/genai": "^1.28.0",
  "express": "^4.21.2",
  "dotenv": "^16.4.7",
  "firebase-admin": "^13.1.0",
  "mime": "^2.6.0",
  "node-fetch": "^3.3.2"
}

๐Ÿ—๏ธ Architecture

Mobile App Structure

lib/
โ”œโ”€โ”€ main.dart                 # Entry point & Firebase initialization
โ”œโ”€โ”€ splash_screen.dart        # Loading screen with branding
โ”œโ”€โ”€ flashcards_screen.dart   # Onboarding experience
โ”œโ”€โ”€ auth_page.dart           # Mode selection (Kid/Next-Gen)
โ”œโ”€โ”€ login_page.dart          # Authentication forms
โ”œโ”€โ”€ dashboard.dart           # Role-based main interface
โ”œโ”€โ”€ eco_sort_game.dart       # Interactive recycling game
โ”œโ”€โ”€ daily_tasks.dart         # Environmental task list
โ”œโ”€โ”€ task_detail_page.dart    # Task completion & verification
โ””โ”€โ”€ firebase_options.dart    # Firebase configuration

Backend API Structure

ai_backend/
โ”œโ”€โ”€ server.js                # Express server & Gemini AI integration
โ”œโ”€โ”€ package.json            # Node.js dependencies
โ”œโ”€โ”€ vercel.json             # Deployment configuration
โ””โ”€โ”€ api/
    โ””โ”€โ”€ gemini.js           # AI verification endpoints

๐Ÿš€ Getting Started

Prerequisites

  • Flutter SDK (3.9.2+)
  • Node.js (16+)
  • Firebase project setup
  • Google AI API key
  • Cloudinary account

Installation

  1. Clone the repository

    git clone https://github.com/HACKWAVE2025/B06.git
    cd B06
  2. Flutter App Setup

    flutter pub get
    flutter pub run flutter_launcher_icons:main
  3. Firebase Configuration

    • Add your google-services.json to android/app/
    • Update firebase_options.dart with your Firebase config
  4. Backend Setup

    cd ai_backend
    npm install
  5. Environment Variables Create .env in ai_backend/:

    GEMINI_API_KEY=your_google_ai_api_key
    PORT=3000
  6. Run the Application

    # Start backend server
    cd ai_backend && npm start
    
    # Run Flutter app
    flutter run

๐ŸŽฎ How It Works

User Journey

  1. Splash Screen: Brand introduction with logo and tagline
  2. Onboarding: Interactive flashcards explaining app benefits
  3. Mode Selection: Choose between Kid Mode or Next-Gen Mode
  4. Authentication: Google OAuth or email/password registration
  5. Dashboard: Personalized interface based on user role
  6. Activities:
    • Kids: Play EcoSort game to earn points
    • Adults: Complete daily environmental tasks
  7. Verification: AI-powered photo verification for task completion
  8. Progress Tracking: Real-time points and achievement system

AI Verification Process

  1. User captures photo of completed environmental task
  2. Image uploaded to Cloudinary for hosting
  3. Backend processes image with Google Gemini AI
  4. AI analyzes photo against task requirements
  5. Returns verification result (true/false)
  6. Points awarded for successful verification
  7. Task status updated in Firestore database

๐ŸŽจ UI/UX Design

Color Palette

  • Primary: Deep Green (#27463A)
  • Secondary: Ivory (#EDE7E3)
  • Accent: Green Accent (#66BB6A)
  • Background: Dark (#121212)
  • Success: Light Green (#22C55E)
  • Warning: Orange (#F29D38)

Design Philosophy

  • Minimalist Interface: Clean, intuitive navigation
  • Eco-Friendly Aesthetics: Nature-inspired color schemes
  • Gamification Elements: Points, streaks, and achievements
  • Responsive Design: Optimized for various screen sizes
  • Accessibility: High contrast and readable typography

๐Ÿ” Security Features

  • Firebase Authentication: Secure user management
  • Image Duplicate Detection: SHA-256 hashing prevents reuse
  • Input Validation: Server-side request validation
  • CORS Protection: Configured for production environments
  • API Rate Limiting: Prevents abuse of AI verification endpoints

๐ŸŒ Environmental Impact

GameEco promotes real-world environmental actions through:

  • Waste Reduction: Plastic collection and recycling education
  • Carbon Footprint: Encouraging public transport usage
  • Energy Conservation: Electricity saving challenges
  • Green Awareness: Environmental education and community building
  • Sustainable Habits: Long-term behavior modification through gamification

๐Ÿ™ Acknowledgments

  • Google AI: Gemini API for intelligent image verification
  • Firebase: Backend-as-a-Service platform
  • Cloudinary: Cloud-based image management
  • Flutter Community: UI components and best practices
  • Environmental Organizations: Inspiration for eco-friendly challenges

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages