How alexspx/courselab works
Project type and purpose
• CourseLab is a full-stack, online learning platform.
• Frontend is a Next.js/TypeScript app delivering SSR and CSR React pages.
• Backend is an Express/TypeScript API with real-time features via Socket.io.
• Core functionality: shared documents, video playback, quiz creation, attendance tracking.
File structure
• Top-level “client” folder: Next.js application
– src/pages: routing and SSR entry points
– src/components, modules, hooks, contexts: UI, state management, and re-usable logic
– public: static assets, localization JSON, service worker
– next.config.js, i18next, tailwind, Cypress config for E2E tests
• Top-level “server” folder: Express API and real-time layer
– src/api: REST endpoints (user, course, assignment, chatrooms, document, quiz, video)
– src/functions: business logic helpers (assignmentHelpers, quizHelpers, redisCaching, etc.)
– src/middlewares: auth, file-resize (multer)
– src/sockets: Socket.io setup and namespaces (chatRooms, documents, onlineUsers)
– prisma/schema.prisma: database schema (PostgreSQL or MySQL)
– Redis used for caching and Express-Session store
Extract insights from the README
• Tech stack: TypeScript, NextJs, Tailwind, ExpressJs, Socket.io, Prisma, Redis, Express Sessions
• Features: shared online documents, video player, quiz builder, attendance monitoring
Elements
• Clear labels (e.g., “Next.js Client”, “Express REST API”, “Prisma DB”)
– Blue rectangles for UI/Client components
– Green rectangles for backend services
– Rounded rectangles for cache/session (Redis)