How laptop-iq/skillhub works
This repository implements an online course platform with learner-facing course discovery and learning, account verification, bookings and payment confirmation, plus an admin interface for course and booking management. The backend exposes authentication, course, booking, rating and progress routes; controllers and route handlers perform the domain operations and use MongoDB models. The principal runtime path is user or administrator navigation into the respective app, then backend APIs. The README is empty, and UI-to-API wiring is not established by the excerpts, so those links are omitted.
Main entry points: src/App.jsx Learner app routes · src/App.jsx Admin app routes · server.js API server · userController.js Account operations
Components 34
Learner experience
- Learner app routes
client/src/App.jsx - Course browsing
client/src/components/CoursesPage.jsx - Course detail
client/src/pages/CourseDetailPage.jsx - Home course detail
client/src/pages/CourseDetailPageHome.jsx - About content
client/src/components/AboutPage.jsx - My courses
client/src/components/MyCoursesPage.jsx - Account flows
client/src/features/auth - Payment confirmation
client/VerifyPaymentPage.jsx - Progress API client
client/src/features/api/progressApi.js
Admin console
- Admin app routes
admin/src/App.jsx - Dashboard
admin/src/components/DasboardPage.jsx - Course creation
admin/src/components/AddPage.jsx - Course listing
admin/src/components/ListPage.jsx - Booking management
admin/src/components/BookingsPage.jsx - Admin navigation
admin/src/components/Navbar.jsx
Backend API
- API server
backend/server.js - Auth and user routes
backend/routes/authRoute.js - Account operations
backend/controllers/userController.js - Booking routes
backend/routes/bookingRouter.js - Booking and checkout
backend/controllers/bookingController.js - Course routes
backend/routes/courseRouter.js - Course operations
backend/controllers/courseController.js - Rating routes
backend/routes/ratingRoutes.js - Rating operations
backend/controllers/rating.controller.js - Progress handlers
backend/routes/progressRoutes.js - Verification email
backend/emailVerify/verifyMail.js
Domain data
- Booking records
backend/models/bookingModel.js - Course catalog
backend/models/courseModel.js - User accounts
backend/models/userModel.js - Login sessions
backend/models/sessionModel.js - Learning progress
backend/models/progressModel.js - Course ratings
backend/models/rating.model.js
Other components
- Learner
- Administrator
Connections 35
- Learner → Learner app routes: uses
- Administrator → Admin app routes: uses
- Learner app routes → Course browsing: routes to
client/src/App.jsx - Learner app routes → Course detail: routes to
client/src/App.jsx - Learner app routes → Home course detail: routes to
client/src/App.jsx - Learner app routes → My courses: routes to
client/src/App.jsx - Learner app routes → Account flows: routes to
client/src/App.jsx - Learner app routes → Payment confirmation: routes to
client/src/App.jsx - Admin app routes → Dashboard: routes to
admin/src/App.jsx - Admin app routes → Course creation: routes to
admin/src/App.jsx - Admin app routes → Course listing: routes to
admin/src/App.jsx - Admin app routes → Booking management: routes to
admin/src/App.jsx - Course creation → Admin navigation: renders
admin/src/pages/Add.jsx - Course listing → Admin navigation: renders
admin/src/pages/List.jsx - Booking management → Admin navigation: renders
admin/src/pages/Bookings.jsx - Dashboard → Admin app routes: routed by
- API server → Auth and user routes: mounts
backend/server.js - API server → Booking routes: mounts
backend/server.js - API server → Course routes: mounts
backend/server.js - API server → Rating routes: mounts
backend/server.js - API server → Progress handlers: mounts
backend/server.js - Auth and user routes → Account operations: dispatches
- Booking routes → Booking and checkout: dispatches
backend/routes/bookingRouter.js - Course routes → Course operations: dispatches
backend/routes/courseRouter.js - Rating routes → Rating operations: dispatches
backend/routes/ratingRoutes.js - Booking and checkout → Booking records: reads and writes
backend/controllers/bookingController.js - Booking and checkout → Course catalog: uses
- Booking and checkout → Learner: redirects via checkout
backend/controllers/bookingController.js - Course operations → Course catalog: reads and writes
backend/controllers/courseController.js - Account operations → User accounts: reads and writes
backend/controllers/userController.js - Account operations → Login sessions: manages
backend/controllers/userController.js - Account operations → Verification email: sends verification
backend/controllers/userController.js - Rating operations → Course ratings: reads and writes
backend/controllers/rating.controller.js - Rating operations → Course catalog: updates statistics
backend/controllers/rating.controller.js - Progress handlers → Learning progress: reads and writes
backend/routes/progressRoutes.js