Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€– AI Course Studio

A full-stack AI-powered e-learning platform that auto-generates university-grade courses with structured syllabi, curated YouTube videos, adaptive quizzes, and an integrated AI chatbot assistant.


πŸ“Œ Table of Contents


🧠 Overview

AI Course Studio is a full-stack web application that leverages Google Gemini AI to instantly generate professional, university-grade course curriculums on any topic. Users enter a topic, and the platform produces a complete learning path β€” including structured syllabi (8–10 modules), dual-perspective YouTube video tutorials, rich markdown notes, adaptive quizzes with AI-generated explanations, and curated external resources. An integrated agentic AI chatbot provides real-time learning assistance with multi-turn conversational memory.


✨ Key Features

πŸŽ“ AI-Powered Course Generation

  • Enter any topic and receive a structured syllabus with 8–10 specialized modules generated by Google Gemini 2.5 Flash
  • Each chapter includes rich markdown notes, 5 adaptive quiz questions with AI explanations, and curated external learning resources
  • Courses are persisted in MongoDB β€” revisit anytime without re-generation

πŸ“Ή Dual-Perspective Video Learning

  • Integrated YouTube Data API v3 to auto-curate two tutorial videos per chapter from top educators
  • Unique "Perspective A / Perspective B" toggle lets learners compare explanations from different instructors
  • Automatic fallback and replacement search for unavailable videos

πŸ’¬ Agentic AI Chatbot

  • Built-in AI learning assistant powered by Google Gemini with system-level prompt engineering
  • Maintains full conversation history for contextual multi-turn interactions
  • Supports concept explanations, code debugging, learning path suggestions, and course recommendations
  • Markdown-formatted responses with code highlighting

πŸ” Dual Authentication System

  • Email/Password registration with bcrypt password hashing (salt rounds: 10)
  • Google OAuth 2.0 single sign-on via Passport.js
  • JWT token-based session management with auto-login from persisted tokens
  • Protected API endpoints via custom auth middleware

πŸ“Š Interactive Dashboard

  • Full-text search across course titles and descriptions
  • 6 sorting criteria: Newest, Oldest, Most Progress, Least Progress, Aβ†’Z, Zβ†’A
  • 4 progress filter states: All, Not Started, In Progress, Completed
  • Soft-delete (hide) functionality for course management
  • Real-time animated state transitions and result count display

🎬 Immersive Course Player

  • Resizable split-pane layout β€” drag to adjust video vs. content height
  • Tabbed content viewer: Notes (rendered markdown) | Resources (linked cards) | Quiz (interactive with instant feedback)
  • Chapter-level progress tracking with visual completion indicators
  • Chapter sidebar with completion status and navigation

🎨 Premium UI/UX

  • Dark-mode glassmorphism design with backdrop blur and gradient effects
  • Framer Motion animations β€” page transitions, layout animations, spring physics
  • GSAP + ScrollTrigger β€” scroll-triggered hero animations and staggered card reveals
  • Infinite-scroll review carousel with edge fade gradients
  • Responsive design optimized for desktop and mobile

πŸ› οΈ Tech Stack

Layer Technologies
Frontend React 19, TypeScript, Vite, Framer Motion, GSAP, Lucide Icons, Marked.js
Backend Node.js, Express 5, Mongoose ODM, Passport.js
Database MongoDB (with nested document schemas)
AI/ML Google Gemini 2.5 Flash API (Structured JSON Output)
APIs YouTube Data API v3, Google Generative AI SDK
Auth JWT, bcrypt, Google OAuth 2.0, Passport.js
Email Nodemailer
DevOps Netlify (client), Git, dotenv, CORS

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                        CLIENT (React + Vite)                β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ Landing  β”‚ β”‚ AuthPage β”‚ β”‚Dashboard β”‚ β”‚ CoursePlayer  β”‚  β”‚
β”‚  β”‚  Page    β”‚ β”‚          β”‚ β”‚          β”‚ β”‚               β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚ ChatBot  β”‚ β”‚         Services (API Clients)           β”‚  β”‚
β”‚  β”‚ (Gemini) β”‚ β”‚  authService β”‚ geminiService β”‚ courseServiceβ”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚ REST API (HTTP)
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                     SERVER (Node.js + Express)              β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚                    Middleware (JWT Auth)                β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚   Auth     β”‚ β”‚  Gemini    β”‚ β”‚  Course  β”‚ β”‚  Chatbot  β”‚  β”‚
β”‚  β”‚ Controller β”‚ β”‚ Controller β”‚ β”‚Controllerβ”‚ β”‚ Controllerβ”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚
β”‚  β”‚              Models (Mongoose Schemas)                 β”‚ β”‚
β”‚  β”‚           User β”‚ Course β†’ Chapter β†’ Quiz/Links         β”‚ β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                           β”‚
              β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
              β”‚     MongoDB Atlas       β”‚
              β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ“ Project Structure

AI-Course-Studio_beta/
β”œβ”€β”€ client/                          # Frontend (React + TypeScript + Vite)
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ AuthPage.tsx             # Login/Register with Google OAuth
β”‚   β”‚   β”œβ”€β”€ ChatBot.tsx              # AI chatbot with Gemini integration
β”‚   β”‚   └── GlassCard.tsx            # Reusable glassmorphism card component
β”‚   β”œβ”€β”€ services/
β”‚   β”‚   β”œβ”€β”€ authService.ts           # Auth API client
β”‚   β”‚   β”œβ”€β”€ chatbotService.ts        # Chatbot API client
β”‚   β”‚   β”œβ”€β”€ courseService.ts         # Course CRUD API client
β”‚   β”‚   └── geminiService.ts         # AI generation API client
β”‚   β”œβ”€β”€ App.tsx                      # Main app (Navbar, Landing, Dashboard, Player, Creator)
β”‚   β”œβ”€β”€ types.ts                     # TypeScript interfaces
β”‚   β”œβ”€β”€ index.html                   # Entry HTML with GSAP/ScrollTrigger CDN
β”‚   └── vite.config.ts               # Vite configuration
β”‚
β”œβ”€β”€ server/                          # Backend (Node.js + Express)
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   β”œβ”€β”€ db.js                    # MongoDB connection
β”‚   β”‚   └── passport.js              # Google OAuth strategy
β”‚   β”œβ”€β”€ controllers/
β”‚   β”‚   β”œβ”€β”€ authController.js        # Register/Login logic
β”‚   β”‚   β”œβ”€β”€ chatbotController.js     # Gemini chatbot with conversation history
β”‚   β”‚   β”œβ”€β”€ courseController.js      # Enroll, fetch, hide, track progress
β”‚   β”‚   └── geminiController.js      # Syllabus & chapter generation + YouTube API
β”‚   β”œβ”€β”€ middleware/
β”‚   β”‚   └── authMiddleware.js        # JWT token verification
β”‚   β”œβ”€β”€ models/
β”‚   β”‚   β”œβ”€β”€ Course.js                # Course schema (nested chapters, quizzes, links)
β”‚   β”‚   └── User.js                  # User schema (enrolled courses, OAuth)
β”‚   β”œβ”€β”€ routes/
β”‚   β”‚   β”œβ”€β”€ authRoutes.js            # /api/auth + /auth (Google callback)
β”‚   β”‚   β”œβ”€β”€ chatbotRoutes.js         # /api/chatbot
β”‚   β”‚   β”œβ”€β”€ courseRoutes.js          # /api/courses
β”‚   β”‚   └── geminiRoutes.js          # /api/gemini
β”‚   β”œβ”€β”€ utils/
β”‚   β”‚   β”œβ”€β”€ generateToken.js         # JWT token generator
β”‚   β”‚   └── sendEmail.js             # Nodemailer email utility
β”‚   └── server.js                    # Express app entry point
β”‚
└── README.md

πŸš€ Getting Started

Prerequisites

  • Node.js v18+
  • MongoDB Atlas account (or local MongoDB)
  • Google Gemini API Key
  • YouTube Data API v3 Key
  • Google OAuth 2.0 credentials (Client ID + Secret)

Installation

# Clone the repository
git clone https://github.com/arnab5565/AI-Course-Studio_beta.git
cd AI-Course-Studio_beta

# Install server dependencies
cd server
npm install

# Install client dependencies
cd ../client
npm install

Running the Application

# Terminal 1 β€” Start the backend server
cd server
npm run dev          # Runs on http://localhost:5000

# Terminal 2 β€” Start the frontend dev server
cd client
npm run dev          # Runs on http://localhost:5173

πŸ”‘ Environment Variables

Server (server/.env)

MONGO_URI=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret_key
GEMINI_API_KEY=your_google_gemini_api_key
YOUTUBE_API_KEY=your_youtube_data_api_key
GOOGLE_CLIENT_ID=your_google_oauth_client_id
GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret
CLIENT_URL=http://localhost:5173
EMAIL_USER=your_email@gmail.com
EMAIL_PASS=your_email_app_password

Client (client/.env)

VITE_API_BASE=http://localhost:5000

πŸ“‘ API Endpoints

Authentication

Method Endpoint Description
POST /api/auth/register Register with email/password
POST /api/auth/login Login with email/password
GET /auth/google Initiate Google OAuth flow
GET /auth/google/callback Google OAuth callback

AI Generation

Method Endpoint Description
POST /api/gemini/syllabus Generate course syllabus from topic
POST /api/gemini/chapter Generate chapter content + YouTube videos

Course Management (Protected β€” requires JWT)

Method Endpoint Description
POST /api/courses/enroll Save & enroll in a generated course
GET /api/courses/my Fetch user's enrolled courses
PATCH /api/courses/:id/hide Soft-delete (hide) a course
PATCH /api/courses/:id/chapter/:chapterId/progress Mark chapter as completed
PATCH /api/courses/:id/chapter/:chapterId/content Save AI-generated chapter content

Chatbot

Method Endpoint Description
POST /api/chatbot/chat Send message with conversation history

πŸ“ Resume Key Points

Architecture & Full-Stack Development

  • Designed and developed a full-stack web application using React 19 (TypeScript) + Vite on the frontend and Node.js/Express 5 with MongoDB (Mongoose) on the backend, following an MVC architecture pattern.
  • Architected a RESTful API with dedicated routes for authentication, AI content generation, course management, and chatbot interactions, protected by JWT-based middleware.

AI / Generative AI Integration

  • Integrated Google Gemini 2.5 Flash API with structured JSON schema responses to dynamically generate course syllabi (8–10 modules), chapter-level educational content, quiz questions with explanations, and curated external learning resources.
  • Built an agentic AI chatbot powered by Gemini with multi-turn conversational memory, system-level prompt engineering, and markdown-formatted responses for real-time learning assistance.

Third-Party API Integration

  • Implemented YouTube Data API v3 integration to auto-curate dual-perspective tutorial videos per chapter, enabling a unique "Perspective A / Perspective B" learning methodology.

Authentication & Security

  • Implemented a dual authentication system supporting both traditional email/password (bcrypt-hashed) registration and Google OAuth 2.0 (via Passport.js), with JWT token management and auto-login from persisted tokens.

Data Persistence & Course Management

  • Designed a MongoDB data model with nested schemas (Course β†’ Chapters β†’ Quizzes/Resources/Videos) to persist AI-generated content, enabling users to resume courses without re-generation.
  • Developed course enrollment, progress tracking (chapter-level completion), and soft-delete functionality with real-time UI updates.

Frontend & UI/UX

  • Built a premium, dark-mode glassmorphism UI with Framer Motion animations, GSAP scroll-triggered effects, resizable split-pane course player, and an infinite-scroll review carousel.
  • Implemented a feature-rich dashboard with full-text search, multi-criteria sorting (6 options), progress-based filtering, and animated state transitions.

πŸ”‘ ATS-Friendly Keywords

Category Keywords
AI/ML Generative AI, Google Gemini API, Prompt Engineering, Structured Output, Agentic Chatbot
Frontend React, TypeScript, Vite, Framer Motion, GSAP, Responsive Design, SPA
Backend Node.js, Express, REST API, MVC, Middleware, JWT Authentication
Database MongoDB, Mongoose, Schema Design, Nested Documents, CRUD Operations
Auth OAuth 2.0, Google OAuth, JWT, bcrypt, Passport.js, Session Management
APIs YouTube Data API v3, Google Generative AI, RESTful API Design
DevOps Netlify, Git, Environment Variables, CORS Configuration

πŸ“Š Impact Metrics

  • Auto-generates 8–10 module syllabi from a single topic prompt in under 10 seconds
  • Each chapter produces 5 quiz questions, 2 curated videos, 3+ external resources, and rich markdown notes β€” all AI-generated
  • Supports dual authentication methods (email/password + Google OAuth)
  • Dashboard supports 6 sorting criteria and 4 progress filter states with real-time search
  • Chatbot maintains full conversation history for contextual multi-turn interactions

πŸ“„ License

This project is licensed under the ISC License.


Built with ❀️ using React, Node.js, and Google Gemini AI

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages