AI Learning Assistant is a modern, full-stack MERN web application designed to supercharge your study sessions. By uploading PDF documents, the app leverages the power of Google's Gemini AI to instantly generate interactive quizzes, flashcards, document summaries, and an intelligent chat interface to help you understand complex concepts faster than ever before.
- π Smart Document Management: Upload and organize your study materials (PDFs) securely.
- π€ AI Chat Interface: "Talk" directly to your documents. Ask questions and get instant AI explanations.
- π― Auto-Generated Quizzes: Test your knowledge! The AI reads your document and generates personalized multiple-choice quizzes. Re-attempt them anytime and track your historical progress!
- π Interactive Flashcards: Memorize key concepts effortlessly with auto-generated, reviewable flashcards.
- π Progress Dashboard: Track your learning journey with a beautiful, responsive dashboard showing your total documents, quizzes, and recent activities.
- π± Seamlessly Responsive: A sleek, glassy UI built with TailwindCSS that looks and feels like a native premium app on any device size.
Follow these steps to run the project locally on your machine:
git clone <your-repo-url>
cd Ai-power-study_Assistentcd backend
npm installEnvironment Variables (CRITICAL):
To run the backend, you'll need the proper .env configuration (containing MongoDB, Gemini API, and Cloudinary keys).
π Click here to get the .env configuration file
Copy the contents from the link above and place them in a newly created .env file inside the backend directory.
Start the backend server:
npm run dev
# The server will start on http://localhost:8000Open a new terminal window:
cd Ai-learn-assistant
npm install
npm run devThe application will launch in your browser! (Usually on http://localhost:5173)
Ai-power-study_Assistent/
βββ Ai-learn-assistant/ # Frontend (Vite + React)
β βββ public/ # Static assets
β βββ src/ # React source code
β βββ components/ # Reusable UI (Auth, Chat, Flashcards, Layout, Quizzes)
β βββ context/ # React Context (AuthContext)
β βββ pages/ # Route views (Dashboard, Document, Quizzes)
β βββ services/ # API communication (Axios)
β
βββ backend/ # Backend (Node.js + Express)
βββ config/ # Database connection
βββ controllers/ # Route logic (AI, Auth, Documents, Quizzes)
βββ middleware/ # JWT Auth & Error handling
βββ models/ # MongoDB Schemas
βββ routes/ # Express API Routes
Thank You To My partners -Arkan & Sandip π€


