PrepMate AI is an AI-powered exam preparation platform designed to help students learn smarter, revise faster, and stay organized. Built using the MERN stack, the application leverages artificial intelligence to generate structured, exam-oriented notes enriched with diagrams and charts for better visualization and deeper understanding.
The platform provides a seamless experience for creating, managing, and revisiting study materials, ensuring users can focus on productivity rather than manual note-taking. With features like personalized note history, intuitive navigation, and premium-based revision tools, PrepMate AI simplifies the entire study workflow.
Designed with a modern and responsive user interface, PrepMate AI combines performance, scalability, and usability—making it a reliable companion for students preparing for exams.
Frontend:
Backend:
Deployed On:
- Generate structured, exam-oriented notes using AI
- Customizable inputs: topic, class level, and exam type
- Supports diagram and chart-based explanations for better understanding
- Smart prompt system for high-quality content generation
- Access all previously generated notes in one place
- View detailed notes with structured content
- Delete notes securely with user-specific access
- Notes linked directly to user accounts for personalization
- Dedicated Exam Revision Mode for focused learning
- Available only for premium users
- Optimized content for quick revision and retention
- Credit-based usage system for generating notes
- Integrated Stripe payment gateway for purchasing credits
- Secure payment verification and credit allocation
- Prevents duplicate transactions and ensures consistency
- Download generated notes as well-structured PDFs
- Includes:
- Subtopics
- Notes
- Revision points
- Questions (short & long)
- Clean formatting for offline study and sharing
- Google-based authentication system
- Secure session handling using HTTP-only cookies
- Personalized user data and note tracking
- Fast and responsive UI built with React & Tailwind
- Seamless navigation between notes and history
- Optimized backend with Express & MongoDB
- Scalable architecture for future enhancements
-
Clone the repository:
git clone https://github.com/rajeevkrS/AI-Exam-Notes
-
Install dependencies in backend and frontend:
cd server npm install cd client npm install
-
Set up environment
.envvariables:# BACKEND ENV GUIDE PORT= your port no. DB_URL= your mongodb url JWT_SECRET= your jwt key CLIENT_URL= your client/frontend url GEMINI_API_KEY= your gemini api key STRIPE_SECRET_KEY= your stripe secret key # FRONTEND ENV GUIDE VITE_BACKEND_URL= your backend url VITE_FIREBASE_APIKEY= your firebase pi key
-
Run the application:
In the
serverdirectory, start the server:npm run server
In the
clientdirectory, start the Frontend React app:npm run dev
Here are listed all available API endpoints along with a brief description of each.
POST /api/auth/google: ogin or signup using GoogleGET /api/auth/logout: logout the current user
GET /api/user/currentuser: get current logged-in user details
POST /api/notes/generate-notes: generate AI-powered notes (supports diagrams & charts)GET /api/notes/getnotes: get all notes of the logged-in userGET /api/notes/:id: get a specific note by IDDELETE /api/notes/:id: delete a specific note
POST /api/credit/order: create Stripe payment session for creditsPOST /api/credit/verify-payment: verify payment and add credits to user
POST /api/pdf/generate-pdf: generate and download notes as PDF
If you want to contact me, you can reach me through below handles.
Feel free to contribute to the project by opening issues or creating pull requests. Your feedback and suggestions are highly appreciated.