How abellaa8795/crammbling_enhanced_lms_genai works
Crammbling is a learning and collaboration app: users sign in, reach a dashboard, and move among chat, quizzes, classroom, group collaboration, and personalized study tools. The backend provides authentication and distinct chat, social, notification, and personalization services. The excerpts show frontend routing, chat UI/API usage, backend route mounting, and parts of the chat and social workflows. Other route-to-controller and frontend-to-backend links are not shown, so they are omitted; some listed capabilities have unsampled implementation details.
Main entry points: App.jsx Route shell · chat.controller.js Chat workflow · app.js API application · social.controller.js Social handlers
Components 32
Learning app
- Route shell
client/my-react-app/src/App.jsx - Dashboard
client/my-react-app/src/pages/Dashboard.jsx - Chat workspace
client/my-react-app/src/pages/chatbot.jsx - Chat API client
client/my-react-app/src/api/chat.js - Quiz arena
client/my-react-app/src/pages/QuizArena.jsx - Classroom
client/my-react-app/src/pages/classroom.jsx - Group collaboration
client/my-react-app/src/pages/group_collab.jsx - Personalized study
client/my-react-app/src/pages/personalized.jsx - Profile hub
client/my-react-app/src/pages/ProfileHub.jsx - Shared settings
client/my-react-app/src/components/Settings.jsx
Identity
- API application
server/src/app.js - Auth routes
server/src/routes/Authentication - Auth handlers
server/src/controllers/Authentication
Chat service
- Chat routes
server/src/routes/Chatbot_services - Chat workflow
server/src/controllers/Chatbot_services/chat.controller.js - Chat records
server/src/models/Chatbot_services/chat.model.js - Prompt records
server/src/models/Chatbot_services/prompt.model.js - Context summarizer
server/src/services/Chatbot_services/summarization.service.js - Request queue
server/src/services/Chatbot_services/queue.service.js - LLM adapter
server/src/services/Chatbot_services/ollama.service.js
Community
- Social routes
server/src/routes/Social_services - Social handlers
server/src/controllers/Social_services/social.controller.js - Social records
server/src/models/Social_services/social.model.js - Social cache
server/src/services/Social_services/socialCache.service.js - Notifications
server/src/services/Notification_services/notificationEvents.service.js
Study planning
- Personalization routes
server/src/routes/Personalization_services - Study handlers
server/src/controllers/Personalization_services - Study data
server/src/models/Personalization_services/personalization.model.js - Calendar sync
server/src/services/Personalization_services/googleCalendarSync.service.js
Other components
- Learner
- Ollama service
- Postgres pool
server/src/config/database.js
Connections 31
- Learner → Route shell: opens
client/my-react-app/src/App.jsx - Route shell → Dashboard: routes to
client/my-react-app/src/App.jsx - Route shell → Chat workspace: routes to
client/my-react-app/src/App.jsx - Route shell → Quiz arena: routes to
client/my-react-app/src/App.jsx - Route shell → Classroom: routes to
client/my-react-app/src/App.jsx - Route shell → Group collaboration: routes to
client/my-react-app/src/App.jsx - Route shell → Personalized study: routes to
client/my-react-app/src/App.jsx - Route shell → Profile hub: routes to
client/my-react-app/src/App.jsx - Dashboard → Quiz arena: renders
client/my-react-app/src/pages/Dashboard.jsx - Dashboard → Shared settings: renders
client/my-react-app/src/pages/Dashboard.jsx - Chat workspace → Chat API client: loads chats
client/my-react-app/src/pages/chatbot.jsx - Personalized study → Shared settings: renders
client/my-react-app/src/pages/personalized.jsx - Group collaboration → Shared settings: renders
client/my-react-app/src/pages/group_collab.jsx - API application → Auth routes: mounts
server/src/app.js - API application → Chat routes: mounts
server/src/app.js - API application → Social routes: mounts
server/src/app.js - API application → Personalization routes: mounts
server/src/app.js - Chat workflow → Chat records: reads and writes
server/src/controllers/Chatbot_services/chat.controller.js - Chat workflow → Prompt records: gets prompt
server/src/controllers/Chatbot_services/chat.controller.js - Chat workflow → Context summarizer: bounds context
server/src/controllers/Chatbot_services/chat.controller.js - Chat workflow → Request queue: checks position
server/src/controllers/Chatbot_services/chat.controller.js - Chat workflow → LLM adapter: gets cached prompt
server/src/controllers/Chatbot_services/chat.controller.js - LLM adapter → Ollama service: streams request
server/src/services/Chatbot_services/ollama.service.js - Social handlers → Social cache: reads and invalidates
server/src/controllers/Social_services/social.controller.js - Social handlers → Social records: loads profile
server/src/controllers/Social_services/social.controller.js - Social handlers → Notifications: pushes event
server/src/controllers/Social_services/social.controller.js - Study handlers → Study data: uses study data
server/src/controllers/Personalization_services/studyEvent.controller.js - Study handlers → Calendar sync: syncs events
server/src/controllers/Personalization_services/studyEvent.controller.js - Chat records → Postgres pool: uses pool
- Prompt records → Postgres pool: uses pool
server/src/models/Chatbot_services/prompt.model.js - Study data → Postgres pool: uses pool
server/src/models/Personalization_services/personalization.model.js