How ragul-gunasekaran/operation-blockout works
Operation Blackout is a cybersecurity investigation game. An agent registers or signs in, starts a timed investigation, follows a clue, submits a six-digit recovery code, and can view completed rankings. The React application presents these stages; a FastAPI application handles authentication, gameplay, verification, and leaderboard requests, backed by SQLAlchemy participant and game-session records. The README also advertises secure authentication and high-concurrency support. Backend internals are summarized where excerpts are incomplete; the frontend-to-API relationship is evidenced by the registration request.
Main entry points: main.py Game API · database.py Database access · App.jsx Game interface · models.py Agent accounts
Components 10
Player experience
- Game interface
frontend/src/App.jsx
Game service
- API entrypoint
frontend/api/index.py - Game API
backend/app/main.py - API schemas
backend/app/schemas.py
Persistence
- Agent accounts
backend/app/models.py - Game records
backend/app/models.py - Database access
backend/app/database.py
Other components
- Agent
- SQL database
- Investigation clue
Connections 10
- Agent → Game interface: plays
frontend/src/App.jsx - Game interface → Game API: sends requests
frontend/src/App.jsx - API entrypoint → Game API: loads app
frontend/api/index.py - Game API → API schemas: uses schemas
backend/app/main.py - Game API → Database access: gets sessions
backend/app/main.py - Database access → Agent accounts: loads models
backend/app/database.py - Game API → Agent accounts: reads and writes
backend/app/main.py - Game API → Game records: reads and writes
backend/app/main.py - Database access → SQL database: connects to
backend/app/database.py - Game API → Investigation clue: returns clue link
backend/app/main.py