An intelligent study planning application that helps students create personalized study plans, manage notes, and prepare effectively for exams using AI-powered features.
- User Authentication - Login and signup with role-based access (student/admin)
- Study Plan Management - Create and manage personalized study plans
- Notes Maker - Create and organize study notes
- Q&A Component - Generate questions and answers from study material
- Flash Cards - Create flashcards for quick revision
- MCQ Practice - Practice multiple choice questions
- Subjective Questions - Practice subjective/essay-type questions
- AI Tutor - Get AI-powered tutoring assistance
- Image Generator - Generate visual study aids
- Theory Memorizer - Memorize theory concepts effectively
- Admin Dashboard - Admin panel for managing users
- Frontend: React, TypeScript, Vite
- Styling: Tailwind CSS, shadcn/ui
- Backend: Node.js, Express
- Database: MongoDB (with Mongoose)
- Authentication: JWT tokens
- Node.js (v18 or higher)
- MongoDB (local or cloud instance)
- npm or yarn
-
Clone the repository:
git clone https://github.com/Abhijeet-dhotre/AI-TUTOR.git cd AI-TUTOR -
Install dependencies:
npm install
-
Configure environment variables:
Create a
.envfile in the root directory:# Server (backend) PORT=3001 MONGO_URI=mongodb://127.0.0.1:27017/studyplanner JWT_SECRET=your_jwt_secret_key # Frontend (Vite) VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_PUBLISHABLE_KEY=your_supabase_key VITE_GEMINI_API_KEY=your_gemini_api_key
-
Start MongoDB (if running locally):
mongod
npm run dev:allThis will start both the Vite development server and the Express backend concurrently.
Frontend only:
npm run devBackend only:
npm run serverThe frontend will be available at http://localhost:5173 and the backend at http://localhost:3001.
After starting the server, create an admin account:
- Open a new terminal
- Run:
node server/create-admin.ts - Login with:
- Email:
[email protected] - Password:
admin123
- Email:
AI-TUTOR/
├── public/ # Static assets
├── server/ # Express backend
│ ├── index.ts # Server entry point
│ ├── models/ # Mongoose models
│ └── routes/ # API routes
├── src/ # React frontend
│ ├── components/ # UI components
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utility functions
│ └── pages/ # Page components
├── .env # Environment variables
├── package.json # Dependencies
├── tailwind.config.ts # Tailwind configuration
└── vite.config.ts # Vite configuration
npm run buildThe build output will be in the dist folder.
MIT