Skip to content

SerenaL1/Disaster-Tech-Lab-Training-Platform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disaster Tech Lab - Simulation Platform

A comprehensive training platform for disaster response, featuring AI-driven simulations, scenario generation from real-world reports, and detailed analytics.

Overview

This platform allows Trainers to create realistic disaster scenarios (manually or by importing PDF After Action Reports) and assign them to Trainees. Trainees engage in interactive, chat-based simulations powered by an LLM (Google Gemini), which acts as the simulation engine. Upon completion, the system generates a structured After Action Report (AAR) and a PDF summary.

Documentation

For more detailed information, check the docs/ folder:

Tech Stack

  • Frontend: Next.js 14 (App Router), TypeScript, Tailwind CSS, Shadcn UI.
  • Backend: FastAPI (Python), Pydantic, Google Gemini (AI).
  • Database: Supabase (PostgreSQL).
  • Storage: Supabase Storage.
  • Authentication: Supabase Auth.

Setup

Prerequisites

  • Node.js 18+
  • Python 3.11+
  • Supabase Account

Environment Variables

Create a .env file in server/ and .env.local in frontend/.

Server (server/.env):

SUPABASE_URL="your-supabase-url"
SUPABASE_KEY="your-supabase-anon-key"
SUPABASE_SERVICE_ROLE="your-service-role-key"
GEMINI_API_KEY="your-gemini-api-key"

Frontend (frontend/.env.local):

NEXT_PUBLIC_SUPABASE_URL="your-supabase-url"
NEXT_PUBLIC_SUPABASE_ANON_KEY="your-supabase-anon-key"
NEXT_PUBLIC_API_BASE_URL="http://localhost:8000"

Database Setup

Run the SQL migrations found in supabase/migrations (or frontend/setup.sql) in your Supabase SQL Editor to create the necessary tables (profiles, scenarios, scenario_sessions, etc.) and storage buckets (aar_uploads, aar_reports).

Running the Project

Backend

cd server
python -m venv .venv
source .venv/bin/activate  # or .venv\Scripts\activate on Windows
pip install -r requirements.txt
uvicorn main:app --reload

Frontend

cd frontend
npm install
npm run dev

Open http://localhost:3000 in your browser.

Documentation

See the docs/ folder for detailed documentation:

About

A cloud-hosted, desktop-based training prototype that generates scenarios from After-Action Reports (AARs), enables interactive free-text response sessions with AI-driven adaptations, and produces end-of-scenario reports for trainer evaluation. Developed for the Disaster Tech Labs company.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors