How vikasraog6/online-tutorial-web-app-backend works
Project type and purpose
• From the file tree and README, this is a Node.js/Express backend for an online-tutorial platform (courses, quizzes, users, enrollments, notifications).
• There is no separate frontend in this repo—this service exposes REST endpoints (and sockets) to be consumed by a client.
File structure
• server.js: entry point that sets up Express, middleware, routes, socket.
• controllers/: business logic for each resource (admin, auth, courses, users, quizzes).
• routes/: maps HTTP paths to controller methods (e.g. routes/courses.js).
• models/: Mongoose (or similar ORM) schema definitions for Course, User, Quiz, Enrollment, Notification.
• utils/: shared helpers (api clients, email dispatch, socket initialization).
• .env: runtime configuration (DB credentials, API keys).
• .github/workflows/main_online-tutorial-backend.yml: CI/CD via GitHub Actions.
README for additional insights
• The README is placeholder (“Hello\nTest deployment”), so all architectural clues come from the structure.
Detail without over-splitting
• Combine all controllers into one “Business Logic” layer unless you want to highlight each domain (Auth, Courses, Quizzes) separately.
• Don’t get lost in file-level detail—focus on components and their interactions.