How maxephraim09/nays-cbt-v1.01 works
NAYS 2.0 is a Flutter learning and computer-based testing application, with Firebase-backed services and native platform runners. The intended learner workflow is subject selection, exam delivery, answer submission, scoring, and leaderboard updates; the README also describes offline practice and locally stored question banks. Flutter feature source is absent from the supplied tree, so those client-side components are documented-only and have null paths. Backend exam behavior and Windows startup are supported by excerpts; other app-client links rely on the README rather than inspected Flutter code.
Main entry points: index.ts Exam session service · exam_logic.ts Exam logic · main.cpp Windows runner · MainActivity.kt Android activity
Components 16
Learner app
- NAYS app
- Windows runner
windows/runner/main.cpp - Android activity
android/app/src/main/kotlin/com/nays/nays_mobile/MainActivity.kt - Subject selection
- Exam preferences
- Exam history
Offline learning
- Local question bank
- Offline practice
Exam services
- Exam session service
functions/src/index.ts - Exam logic
functions/src/exam_logic.ts - Answer submission
functions/src/index.ts
Cloud data
- Exam results
functions/src/index.ts - User profiles
functions/src/index.ts - Leaderboards
functions/src/index.ts
Other components
- Learner
- Firebase
Connections 19
- Learner → NAYS app: uses
- NAYS app → Windows runner: starts through
windows/runner/main.cpp - NAYS app → Android activity: runs on
- NAYS app → Subject selection: selects
- NAYS app → Exam preferences: configures
- Subject selection → Exam session service: starts exam
functions/src/index.ts - Exam preferences → Exam session service: sets exam options
functions/src/index.ts - NAYS app → Local question bank: loads locally
- Local question bank → Offline practice: supplies questions
- Exam session service → Firebase: reads and writes
functions/src/index.ts - Exam session service → Exam logic: selects questions
functions/src/index.ts - Exam session service → User profiles: reads profile
functions/src/index.ts - Exam session service → Answer submission: accepts answers
functions/src/index.ts - Answer submission → Exam logic: grades answers
functions/src/index.ts - Answer submission → Exam results: stores result
functions/src/index.ts - Exam results → Exam history: supports review
- Exam results → Leaderboards: updates standings
functions/src/index.ts - NAYS app → User profiles: syncs account data
- NAYS app → Leaderboards: shows standings