How teomarcelo/session-qa works
Session Q&A is a browser-based live event product: instructors authenticate and configure a coded session, then students join, submit questions, and vote while instructors answer and manage the session. The Vite React apps use Firebase Auth, Firestore, and Storage; a separate Next.js surface provides Google OAuth/session routes and student/instructor pages. README documents product capabilities beyond the sampled source, so those branches are represented at their listed component paths; their internal calls are not inferred where source was not shown.
Main entry points: StudentApp.jsx Student app · Dashboard.jsx Session dashboard · InstructorApp.jsx Instructor app · useStudentSession.js Join session
Components 30
Student experience
- Student app
src/student/StudentApp.jsx - Join session
src/student/hooks/useStudentSession.js - Ask and edit
src/student/components/AskBox.jsx - Question feed
src/student/hooks/useQuestions.js - Upvote questions
src/student/hooks/useUpvote.js - Session details
src/student/components/SessionInfo.jsx - Session stats
src/student/hooks/useSessionStats.js - Send feedback
src/student/components/FeedbackModal.jsx
Instructor workspace
- Instructor app
src/instructor/InstructorApp.jsx - Instructor identity
src/instructor/hooks/useInstructorAuth.js - Session dashboard
src/instructor/components/Dashboard.jsx - Session setup
src/instructor/components/CreateSessionModal.jsx - Session settings
src/instructor/components/sidebar/SessionSettings.jsx - Question management
src/instructor/hooks/useQuestions.js - Answer questions
src/instructor/components/AnswerBox.jsx - Instructor roster
src/instructor/components/sidebar/InstructorManager.jsx - Instructor notes
src/instructor/components/sidebar/SessionNotesEditor.jsx - Instructor state
src/instructor/store/useInstructorStore.js
Firebase and shared
- Firebase context
src/shared/FirebaseContext.jsx - Firebase identity
src/lib/auth.js - Firestore
- Firebase Storage
Web auth gateway
- OAuth routes
next-app/app/api/auth/callback/route.js - OAuth login
next-app/app/api/auth/login/route.js - OAuth logout
next-app/app/api/auth/logout/route.js - Google OAuth
next-app/lib/oauth.js - Web session
next-app/lib/session.js
Other components
- Student
- Instructor
- Google identity
Connections 43
- Student → Student app: uses
README.md - Student app → Join session: restores or joins
src/student/StudentApp.jsx - Join session → Firestore: reads session
src/student/hooks/useStudentSession.js - Join session → Firebase identity: ensures identity
src/student/hooks/useStudentSession.js - Student app → Question feed: loads feed
src/student/StudentApp.jsx - Question feed → Firestore: listens and pages
README.md - Student app → Ask and edit: renders
README.md - Ask and edit → Firestore: submits and edits
README.md - Ask and edit → Firebase Storage: uploads images
README.md - Student app → Upvote questions: offers voting
README.md - Upvote questions → Firestore: updates votes
README.md - Student app → Session details: shows details
- Student app → Session stats: shows stats
README.md - Student app → Send feedback: offers feedback
README.md - Send feedback → Firestore: writes feedback
README.md - Instructor → Instructor app: uses
README.md - Instructor app → Instructor identity: authenticates
src/instructor/InstructorApp.jsx - Instructor identity → Firebase identity: signs in
src/instructor/hooks/useInstructorAuth.js - Firebase identity → Firebase context: gets Firebase
src/lib/auth.js - Instructor app → Session dashboard: shows workspace
src/instructor/InstructorApp.jsx - Session dashboard → Instructor state: reads state
- Session dashboard → Session setup: creates sessions
README.md - Session setup → Firestore: writes session
src/instructor/components/CreateSessionModal.jsx - Session dashboard → Session settings: configures session
README.md - Session settings → Firestore: updates settings
README.md - Session dashboard → Question management: manages questions
README.md - Question management → Firestore: pages and listens
README.md - Session dashboard → Answer questions: answers questions
README.md - Answer questions → Firestore: saves answers
README.md - Answer questions → Firebase Storage: uploads images
README.md - Session dashboard → Instructor roster: manages instructors
src/instructor/components/sidebar/InstructorManager.jsx - Instructor roster → Firestore: updates roster
src/instructor/components/sidebar/InstructorManager.jsx - Session dashboard → Instructor notes: edits notes
README.md - Instructor notes → Firestore: saves notes
README.md - Firebase context → Firestore: provides client
src/shared/FirebaseContext.jsx - Firebase context → Firebase Storage: provides client
src/shared/FirebaseContext.jsx - OAuth login → Google OAuth: builds redirect
next-app/app/api/auth/login/route.js - OAuth routes → Google OAuth: exchanges and verifies
next-app/app/api/auth/callback/route.js - OAuth routes → Web session: creates session
next-app/app/api/auth/callback/route.js - OAuth logout → Web session: destroys session
next-app/app/api/auth/logout/route.js - OAuth login → Google identity: redirects to
- Google OAuth → Google identity: exchanges code
next-app/lib/oauth.js - Instructor app → OAuth routes: web sign-in option