How vao2/study_nation works
StudyNotion is an EdTech marketplace for instructors to publish courses and students to enroll, learn, and track progress. The principal flow runs from course discovery and details through purchase, enrollment, lesson viewing, and progress updates; instructors also create course structures and inspect dashboard metrics. The graph preserves authentication, reviews, contact, profile, and media/payment integrations. Relationships to unsampled route handlers and some documented capabilities are shown only where the README or indexed references support them; unspecified wiring is omitted.
Main entry points: Course.js API Routes · App.jsx Web App Router · courseDetailsAPI.js Course Operations · CourseDetails.jsx Catalog and Details
Components 25
Learner Web App
- Web App Router
src/App.jsx - Catalog and Details
src/pages/CourseDetails.jsx - Lesson Player
src/components/core/ViewCourse/VideoDetails.jsx - Instructor Dashboard
src/components/core/Dashboard/Instructor.jsx - Review Slider
src/components/Common/ReviewSlider.jsx - Auth Forms
src/components/core/Auth/SignupForm.jsx - Redux State
src/reducer/index.js
Course Platform
- Course Operations
src/services/operations/courseDetailsAPI.js - Course Controllers
server/controllers/Course.js - Sections and Lessons
server/controllers/Section.js - Learning Progress
server/controllers/courseProgress.js - Ratings and Reviews
server/controllers/RatingandReview.js - Course Categories
server/controllers/Category.js
Identity and Profiles
- Authentication
server/controllers/Auth.js - JWT and Roles
server/middleware/auth.js - Profile Services
server/controllers/profile.js
Enrollment and Payments
- Payment Workflow
server/controllers/payments.js - Contact Handling
server/controllers/ContactUs.js - API Routes
server/routes/Course.js
Persistence and Integrations
- MongoDB
server/config/database.js - Cloudinary Media
server/config/cloudinary.js - Razorpay
server/config/razorpay.js - Email Sender
server/utils/mailSender.js
Other components
- Student
- Instructor
Connections 29
- Student → Web App Router: uses
src/App.jsx - Instructor → Web App Router: uses
src/App.jsx - Web App Router → Catalog and Details: routes to
src/App.jsx - Web App Router → Lesson Player: routes to
src/App.jsx - Web App Router → Redux State: dispatches through
src/reducer/index.js - Catalog and Details → Course Operations: fetches details
src/pages/CourseDetails.jsx - Lesson Player → Course Operations: loads lessons
- Course Operations → API Routes: calls API
- Review Slider → API Routes: requests reviews
src/components/Common/ReviewSlider.jsx - API Routes → Course Controllers: routes course requests
server/routes/Course.js - API Routes → Sections and Lessons: routes structure requests
server/routes/Course.js - API Routes → Ratings and Reviews: routes review requests
server/routes/Course.js - API Routes → Learning Progress: routes progress requests
server/routes/Course.js - API Routes → Course Categories: routes category requests
server/routes/Course.js - API Routes → JWT and Roles: protects endpoints
server/routes/Course.js - Auth Forms → Authentication: authenticates via
- API Routes → Authentication: routes auth requests
- API Routes → Profile Services: routes profile requests
- Catalog and Details → Payment Workflow: initiates purchase
- Payment Workflow → Razorpay: processes payment
- Payment Workflow → Email Sender: sends confirmation
- Authentication → Email Sender: sends account email
server/controllers/Auth.js - Course Controllers → Cloudinary Media: uploads course media
server/controllers/Course.js - Course Controllers → MongoDB: reads and writes
- JWT and Roles → MongoDB: checks user roles
server/middleware/auth.js - Ratings and Reviews → MongoDB: stores and queries reviews
server/controllers/RatingandReview.js - Instructor Dashboard → Course Operations: loads dashboard data
src/components/core/Dashboard/Instructor.jsx - Instructor → Instructor Dashboard: manages courses
- Student → Contact Handling: sends contact request