# ramgpal/getskilledonline_an-online-edtech-platform architecture

> Architecture diagram of the GitHub repository ramgpal/getskilledonline_an-online-edtech-platform, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ramgpal/getskilledonline_an-online-edtech-platform
- Repository: https://github.com/ramgpal/getskilledonline_an-online-edtech-platform

## Overview

##### Project type and purpose
- This is a full-stack MERN (MongoDB, Express, React, Node.js) application called GetSkilledOnline.
- Purpose: an ed-tech platform with separate user roles (students, instructors) supporting course browsing, enrollment, content consumption, ratings, payments, and instructor content management.

##### File structure
- Top level:
- public/ – static client assets (index.html, robots.txt)
- src/ – React front-end app: components, pages, Redux slices, services, hooks
- server/ – Express back-end: config, controllers, models (Mongoose), routes, middleware, utilities, mail templates
- Config/build: tailwind.config.js, package.json / package-lock.json for root and server
- Database config in server/config/database.js, cloudinary.js, razorpay.js
- Payment, email, authentication scattered across controllers and utils

##### README insights
- Three clear layers: Front-End (React, Redux, Tailwind), Back-End (Node, Express, JWT, Bcrypt, Mongoose), Database (MongoDB)
- External integrations: Razorpay (payments), Cloudinary (media), email sending (via mailSender)

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Front-End Layer
    subgraph "Front-End (Client)" 
        direction TB
        StudentBrowser["Student Browser"]:::frontend
        InstructorBrowser["Instructor Browser"]:::frontend
        ReactSPA["React SPA"]:::frontend
        StaticAssets["Static Client Assets"]:::frontend
        EntryPoint["Application Entry Point"]:::frontend
        ReduxStore["Redux Store & State Management"]:::frontend
        Pages["Front-End Pages & Routing"]:::frontend
        Components["UI Components (Common & Core)"]:::frontend
        APIConnector["API Connector & Services"]:::frontend
        TailwindConfig["Tailwind CSS Configuration"]:::frontend
    end

    %% Back-End Layer
    subgraph "Back-End (Server)"
        direction TB
        ExpressAPI["Express API"]:::backend
        AuthMiddleware["Authentication Middleware"]:::backend
        Routing["Routing Modules"]:::backend
        Controllers["Business Logic Controllers"]:::backend
        Models["Data Layer – Mongoose Models"]:::backend
        Configs["Configuration for External Integrations"]:::backend
        Utils["Utilities"]:::backend
        EmailTemplates["Email Service & Templates"]:::backend
    end

    %% Database
    MongoDB["MongoDB Atlas"]:::database

    %% External Services
    Razorpay["Razorpay (Payment)"]:::external
    Cloudinary["Cloudinary (Media)"]:::external
    EmailService["Email Service (SMTP)"]:::external

    %% Relationships
    StudentBrowser -->|"uses"| ReactSPA
    InstructorBrowser -->|"uses"| ReactSPA
    ReactSPA -->|"renders"| Pages
    ReactSPA -->|"uses"| Components
    ReactSPA -->|"dispatches"| ReduxStore
    ReactSPA -->|"calls"| APIConnector
    ReactSPA -->|"loaded from"| StaticAssets
    ReactSPA -->|"configured by"| TailwindConfig
    APIConnector -->|"HTTP API Calls"| ExpressAPI

    ExpressAPI -->|"passes through"| AuthMiddleware
    ExpressAPI -->|"routes to"| Routing
    Routing -->|"invokes"| Controllers
    Controllers -->|"CRUD operations"| Models
    Models -->|"persist/read"| MongoDB

    Controllers -->|"payment flow"| Razorpay
    Controllers -->|"media upload"| Cloudinary
    Controllers -->|"send emails"| EmailService

    Configs --> ExpressAPI
    Utils --> Controllers
    EmailTemplates --> Controllers

    %% Click Events - Front-End
    click ReactSPA "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/tree/main/src/"
    click EntryPoint "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/index.js"
    click EntryPoint "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/App.jsx"
    click StaticAssets "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/public/index.html"
    click StaticAssets "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/public/robots.txt"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/reducer/index.js"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/slices/authSlice.js"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/slices/cartSlice.js"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/slices/courseSlice.js"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/slices/profileSlice.js"
    click ReduxStore "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/slices/viewCourseSlice.js"
    click Pages "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/tree/main/src/pages/"
    click Components "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/tree/main/src/components/common/"
    click Components "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/tree/main/src/components/core/"
    click APIConnector "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/services/apiconnector.js"
    click APIConnector "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/services/apis.js"
    click APIConnector "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/tree/main/src/services/operations/"
    click TailwindConfig "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/tailwind.config.js"
    click TailwindConfig "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/src/index.css"

    %% Click Events - Back-End
    click ExpressAPI "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/index.js"
    click Routing "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/routes/User.js"
    click Routing "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/routes/Course.js"
    click Routing "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/routes/Payments.js"
    click Routing "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/routes/Profile.js"
    click Routing "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/routes/Contact.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Auth.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Category.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Course.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Payments.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Profile.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/RatingAndReview.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/ResetPassword.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Section.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/Subsection.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/courseProgress.js"
    click Controllers "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/controllers/ContactUs.js"
    click AuthMiddleware "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/middleware/auth.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/User.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/Category.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/Course.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/Section.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/SubSection.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/CourseProgress.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/RatingandReview.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/Profile.js"
    click Models "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/models/OTP.js"
    click Configs "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/config/database.js"
    click Configs "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/config/cloudinary.js"
    click Configs "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/config/razorpay.js"
    click Utils "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/utils/mailSender.js"
    click EmailTemplates "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/mail/templates/emailVerificationTemplate.js"
    click EmailTemplates "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/mail/templates/courseEnrollmentEmail.js"
    click EmailTemplates "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/mail/templates/paymentSuccessEmail.js"
    click EmailTemplates "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/mail/templates/contactFormRes.js"
    click EmailTemplates "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/mail/templates/passwordUpdate.js"
    click Utils "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/utils/imageUploader.js"
    click Utils "https://github.com/ramgpal/getskilledonline_an-online-edtech-platform/blob/main/server/utils/secToDuration.js"

    %% Styles
    classDef frontend fill:#d0e8ff,stroke:#0294f5,color:#000;
    classDef backend fill:#d5fdd5,stroke:#28a745,color:#000;
    classDef database fill:#ffe3b3,stroke:#e09e00,color:#000,stroke-width:2px;
    classDef external fill:#f0d4fd,stroke:#9b59b6,color:#000;
```
