How srihari-vb/ssc-prep works
This is a React-based SSC CGL preparation app. The main workflow is selecting a topic from the home page, entering its topic page, and using topic material in study or quiz experiences; a separate Learn area presents a curriculum with saved progress and due reviews. The tree shows broad topic-specific practice and visual-learning features, but most topic page implementations were not excerpted and the README is empty, so their internal wiring is not asserted.
Main entry points: Home.tsx Topic home · LearnPage.tsx Learn page · App.tsx App router · types.ts Engine types
Components 20
App navigation
- App router
src/App.tsx - Topic home
src/pages/Home.tsx
Guided learning
- Learn page
src/pages/LearnPage.tsx - Curriculum
src/learn/curriculum.ts - Study view
src/learn/components/StudyView.tsx - Review view
src/learn/components/ReviewView.tsx - Progress view
src/learn/components/ProgressView.tsx - Progress storage
src/learn/storage.ts - Glossary entries
src/learn/glossary.ts
Topic practice
- Topic pages
src/topics - General topic data
src/topics - English questions
src/topics/english/data.ts - Books data
src/topics/books-authors/data.ts - Budget data
src/topics/union-budget/data.ts - Exam engine
src/engine/ExamEngine.tsx - Books exam
src/engine/BooksExamEngine.tsx
Question content
- Question display
src/components/QuestionContent.tsx - Question formats
src/sscQuestionTypes.ts - Engine types
src/engine/types.ts
Other components
- Learner
Connections 24
- Learner → App router: opens app
- App router → Topic home: renders home
src/App.tsx - Topic home → App router: selects page
src/App.tsx - App router → Topic pages: routes to topics
src/App.tsx - App router → Learn page: routes to learn
src/App.tsx - Topic home → General topic data: counts topic data
src/pages/Home.tsx - Topic home → English questions: counts questions
src/pages/Home.tsx - Topic home → Books data: counts books
src/pages/Home.tsx - Topic home → Budget data: counts facts
src/pages/Home.tsx - Learn page → Curriculum: loads curriculum
src/pages/LearnPage.tsx - Learn page → Study view: renders study
src/pages/LearnPage.tsx - Learn page → Review view: renders review
src/pages/LearnPage.tsx - Learn page → Progress view: renders progress
src/pages/LearnPage.tsx - Learn page → Glossary entries: loads glossary
src/pages/LearnPage.tsx - Study view → Progress storage: reads and saves
src/learn/components/StudyView.tsx - Review view → Progress storage: reads and updates
src/learn/components/ReviewView.tsx - Progress view → Progress storage: reads progress
src/learn/components/ProgressView.tsx - Exam engine → Question display: renders questions
src/engine/ExamEngine.tsx - Books exam → Question display: renders questions
src/engine/BooksExamEngine.tsx - Question display → Question formats: uses formats
src/components/QuestionContent.tsx - Exam engine → Engine types: uses types
src/engine/ExamEngine.tsx - Books exam → Engine types: uses types
src/engine/BooksExamEngine.tsx - Books data → Engine types: uses entry types
src/topics/books-authors/data.ts - Budget data → Engine types: uses question types
src/topics/union-budget/data.ts