How yashkumar14/udemy_clone works
This repository is a Udemy-style course-learning application with a Vue frontend and an Express backend. The visible backend workflow covers account registration and login, OTP email delivery and verification, and Google sign-in/sign-up; verified users receive authentication results. The frontend includes course browsing and course-page features, dashboards, and account screens, but the README is empty and sampled sources do not establish most view-to-API connections. The graph therefore preserves those product areas without guessing their runtime links.
Main entry points: main.js Authentication handlers · app.js Express server · connections.js PostgreSQL database · main.ts Application bootstrap
Components 29
Web application
- Vue application shell
Frontend/src/App.vue - Route configuration
Frontend/src/router/index.ts - Frontend state
Frontend/src/utils/vueStore.js - Application bootstrap
Frontend/src/main.ts
Course experience
- Home and discovery
Frontend/src/views/HomePage.vue - Course page
Frontend/src/views/CoursePage.vue - Course components
Frontend/src/components/CourseSideBar.vue - Course incentives
Frontend/src/components/CourseIncentives.vue - Subscription content
Frontend/src/components/SubscriptionContent.vue - Course cards
Frontend/src/components/CoursesCards.vue - Course-card details
Frontend/src/components/CardsTooltipComponent.vue - Learner dashboard
Frontend/src/views/DashboardPage.vue - Cart
Frontend/src/views/Cart.vue - Course data access
Frontend/src/utils/courseFetchApi.js
Identity and access
- Account screens
Frontend/src/views/LoginPage.vue - Registration screen
Frontend/src/views/SignupPage.vue - OTP verification screen
Frontend/src/views/VerifyOtpPage.vue - Google authentication
Frontend/src/composables/useGoogleAuth.js - Authentication handlers
Backend/controllers/main.js - User and role utilities
Backend/utils/util.js - OTP email template
Backend/emailTemplate/mailTemplate.js
Backend services
- Express server
Backend/app.js - API routes
Backend/routes/routers.js - PostgreSQL database
Backend/db_connections/connections.js - OTP expiry jobs
Backend/cron-jobs/otpCronJobs.js - API error handling
Backend/middleware/errorHandler.js - API error types
Backend/errors/index.js
Other components
- Learner
- Transactional email service
Connections 22
- Learner → Vue application shell: uses
- Application bootstrap → Vue application shell: mounts
Frontend/src/main.ts - Application bootstrap → Route configuration: installs
Frontend/src/main.ts - Application bootstrap → Frontend state: installs
Frontend/src/main.ts - Vue application shell → Route configuration: renders routes
Frontend/src/App.vue - Course page → Course components: uses
- Course components → Course incentives: uses
Frontend/src/components/CourseSideBar.vue - Course components → Subscription content: uses
Frontend/src/components/CourseSideBar.vue - Course cards → Course-card details: uses
Frontend/src/components/CoursesCards.vue - Course data access → Frontend state: updates
Frontend/src/utils/courseFetchApi.js - Express server → API routes: mounts
Backend/app.js - Express server → PostgreSQL database: initializes
Backend/app.js - Express server → OTP expiry jobs: loads
Backend/app.js - Express server → API error handling: registers
Backend/app.js - API routes → Authentication handlers: routes to
Backend/routes/routers.js - Authentication handlers → PostgreSQL database: queries
Backend/controllers/main.js - Authentication handlers → User and role utilities: calls
Backend/controllers/main.js - Authentication handlers → OTP email template: renders
Backend/controllers/main.js - Authentication handlers → Transactional email service: sends email
Backend/controllers/main.js - User and role utilities → PostgreSQL database: queries
Backend/utils/util.js - OTP expiry jobs → PostgreSQL database: updates OTPs
Backend/cron-jobs/otpCronJobs.js - API error handling → API error types: checks types
Backend/middleware/errorHandler.js