Skip to content

SafeEd is a gamified disaster management e-learning platform. Features include secure student/teacher login (JWT, OAuth, Firebase), interactive drills (Earthquake, Fire, Flood) with Phaser.js games, real-time alerts (USGS, OpenWeather), Gemini LLM chatbot, and YOLO-powered drill analytics with school reports.

Notifications You must be signed in to change notification settings

shatrughanshukla/SIH25008

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌍 SafeEd – Disaster Management E-Learning Platform [SIH25008]

SafeEd is a gamified e-learning platform designed to make disaster preparedness engaging and interactive for students.
It combines real-time alerts, AI-powered guidance, gamified drills, and school analytics to help institutions stay prepared 🚨.


✨ Features

  • 🔐 Secure Auth: Student/Teacher login with JWT, bcrypt, OAuth, Firebase Auth
  • 🎮 Interactive Drills: Earthquake, Fire, Flood modules with Phaser.js 2D games
  • 📊 Preparedness Dashboard: Scores, badges, leaderboards, and certificates
  • 🌐 Live Alerts: Real-time data from USGS Earthquake API & OpenWeatherMap
  • 🤖 AI Chatbot: Gemini LLM-based chatbot for FAQs & disaster guidance
  • 👥 Analytics: YOLO + MediaPipe crowd detection for school drill reports

⚙️ Tech Stack

  • Frontend/UI: React, Vite, Tailwind CSS, shadcn
  • Games: Phaser.js (2D disaster simulations)
  • Backend/Auth: Firebase Auth, Firestore, JWT, bcrypt, OAuth
  • APIs: USGS Earthquake API, OpenWeatherMap
  • AI/ML: Gemini LLM (chatbot), YOLO + MediaPipe (crowd detection)

🚀 Installation

  1. Clone the repo
git clone https://github.com/yourusername/SafeEd.git
cd SafeEd
  1. Install frontend dependencies
cd frontend
npm install && npm run dev
  1. Install backend dependencies
cd backend
npm install && nodemon server.js
  1. Run backend functions / Firestore for persistence.
  2. Run Gemini Chatbot
pip install -r requirements.txt
python app.py
  1. Project will run on:
Frontend -> http://localhost/3000
Backend -> http://localhost/5000
Gemini LLM Chatbot -> http://localhost/5001

🎯 Use Cases

  • 🏫 Students: Learn disaster safety via games & tasks
  • 👩‍🏫 Teachers: Monitor preparedness and drill reports
  • 🛠️ Institutions: Get analytics for drills & compliance
  • 📚 Education: Make disaster awareness interactive

🤝 Contributions

Contributions are welcome!

  • Found a bug? 🐞
  • Want to add a new drill/game? 🎮
  • Have an optimization? ⚡

Feel free to Submit a Pull Request, open a Discussion or connect with me at LinkedIn

✨ *Preparedness Saves Lives* ✨

About

SafeEd is a gamified disaster management e-learning platform. Features include secure student/teacher login (JWT, OAuth, Firebase), interactive drills (Earthquake, Fire, Flood) with Phaser.js games, real-time alerts (USGS, OpenWeather), Gemini LLM chatbot, and YOLO-powered drill analytics with school reports.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •