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 🚨.
- 🔐 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
- 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)
- Clone the repo
git clone https://github.com/yourusername/SafeEd.git
cd SafeEd- Install frontend dependencies
cd frontend
npm install && npm run dev- Install backend dependencies
cd backend
npm install && nodemon server.js- Run backend functions / Firestore for persistence.
- Run Gemini Chatbot
pip install -r requirements.txt
python app.py- Project will run on:
Frontend -> http://localhost/3000
Backend -> http://localhost/5000
Gemini LLM Chatbot -> http://localhost/5001- 🏫 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 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* ✨