How captianzo/akshar-paaul-portal works
Akshar Paaul Portal supports two connected NGO workflows: faculty record daily work for administrator review, and educators manage books and rubrics before uploading and teacher-assessing handwritten student summaries. The React pages use a shared REST client; Express routes enforce authentication and perform domain operations against PostgreSQL, with Groq used for handwriting transcription and suggested grading. The graph preserves these distinct stages and the documented account-management and review-history capabilities. Some route implementations were not excerpted, so those connections rely on README documentation rather than inferred source calls.
Main entry points: api.js REST client · db.js Database connection · app.js API application · auth.js Access control
Components 22
Portal interface
- Page routing
client/src/App.jsx - Login session
client/src/context/AuthContext.jsx - Daily work
client/src/pages/WorkPage.jsx - Dashboard
client/src/pages/DashboardPage.jsx - Book library
client/src/pages/BooksPage.jsx - Book and rubric
client/src/pages/BookDetailPage.jsx - Submission review
client/src/pages/SubmissionReviewPage.jsx - Faculty accounts
client/src/pages/TeamPage.jsx - REST client
client/src/api.js
API and domain
- API application
server/src/app.js - Authentication
server/src/routes/auth.js - Work review
server/src/routes/work.js - Books and rubrics
server/src/routes/books.js - Submission lifecycle
server/src/routes/submissions.js - Account management
server/src/routes/users.js - Access control
server/src/middleware/auth.js - AI transcription and grading
server/src/services/groq.js
Persistence
- Database connection
server/src/db.js
External services
- PostgreSQL
- Groq vision API
Other components
- Faculty
- Administrator
Connections 37
- Faculty → Login session: signs in
README.md - Administrator → Login session: signs in
README.md - Page routing → Login session: checks session
client/src/App.jsx - Faculty → Daily work: submits work
README.md - Administrator → Daily work: reviews work
README.md - Faculty → Book library: opens library
README.md - Book library → Book and rubric: opens book
client/src/App.jsx - Faculty → Book and rubric: creates rubric
README.md - Faculty → Submission review: uploads and reviews
README.md - Administrator → Faculty accounts: manages accounts
README.md - Login session → REST client: requests session
client/src/context/AuthContext.jsx - Submission review → REST client: loads and saves
client/src/pages/SubmissionReviewPage.jsx - Daily work → REST client: uses REST
README.md - Dashboard → REST client: uses REST
README.md - Book library → REST client: uses REST
README.md - Book and rubric → REST client: uses REST
README.md - Faculty accounts → REST client: uses REST
README.md - REST client → API application: sends requests
README.md - API application → Authentication: mounts
server/src/app.js - API application → Work review: mounts
server/src/app.js - API application → Books and rubrics: mounts
server/src/app.js - API application → Submission lifecycle: mounts
server/src/app.js - API application → Account management: mounts
server/src/app.js - Authentication → Database connection: queries users
server/src/routes/auth.js - Authentication → Access control: protects session lookup
server/src/routes/auth.js - Access control → Database connection: checks account
server/src/middleware/auth.js - Work review → Access control: requires authentication
README.md - Books and rubrics → Access control: requires authentication
server/src/routes/books.js - Submission lifecycle → Access control: requires authentication
server/src/routes/submissions.js - Account management → Access control: requires authentication
server/src/routes/users.js - Work review → Database connection: stores work and reviews
README.md - Books and rubrics → Database connection: stores books and rubrics
server/src/routes/books.js - Submission lifecycle → Database connection: stores submissions
server/src/routes/submissions.js - Account management → Database connection: stores accounts
server/src/routes/users.js - Database connection → PostgreSQL: queries
server/src/db.js - Submission lifecycle → AI transcription and grading: requests transcription and grading
server/src/routes/submissions.js - AI transcription and grading → Groq vision API: sends image and text
README.md