**Note:** Replace the placeholder values with your actual credentials. Never commit this file to version control.ld consistent study habits with an assistant that adapts to your schedule and goals
- About
- Features
- Tech Stack
- Prerequisites
- Installation
- Getting Started
- Usage
- Project Structure
- API Routes
- Contributing
- Team
- License
PlanBee is an intelligent study planning application developed at the University of Moratuwa to revolutionize self-directed learning. Despite the boom in e-learning, course completion rates remain under 30% due to poor planning, static schedules, and lack of motivation.
PlanBee addresses these challenges by generating personalized, adaptive study plans that match your goals, time, and learning style β while keeping you engaged with AI-powered coaching, gamification, and curated resources.
- π€ AI Study Coach: Conversational AI that creates personalized study plans
- π Dynamic Scheduling: Plans automatically adjust when you fall behind
- π― Goal-Oriented Paths: Certification-aligned learning with milestones
- π Gamified Learning: Streaks, badges, and leaderboards for motivation
- π Progress Analytics: Track your learning journey with detailed insights
- AI-Powered Study Plans: Automatically generates and updates personalized study plans based on your goals and schedule
- Goal-Oriented Learning Paths: Create paths aligned to certifications (AWS, PMP, etc.) or personal learning objectives
- Smart Calendar Integration: Sync tasks to your calendar and get reminders
- Certification Mode: Focused mode with practice tests and readiness checks for official exams
- Gamified Learning: Earn streaks, badges and climb leaderboards to stay consistent
- Smart Notifications: Timely alerts to help you stay on track
- Responsive Design: Works seamlessly on desktop, tablet, and mobile
- Intuitive Dashboard: Clean, modern interface with progress tracking
- Real-time Updates: Live progress updates and adaptive scheduling
- Privacy-First: Secure authentication with data protection
- Next.js 15 - React framework with App Router
- TypeScript - Type-safe JavaScript
- Tailwind CSS - Utility-first CSS framework
- Framer Motion - Animation library for smooth interactions
- Next.js API Routes - Serverless API endpoints
- MongoDB - NoSQL database for user data and study plans
- Mongoose - MongoDB object modeling
- NextAuth.js - Authentication and session management
- Google Generative AI - Powered AI study coach
- Recharts - Data visualization for analytics
- ESLint - Code linting
- TypeScript - Type checking
- Tailwind CSS - Styling
{
"@google/generative-ai": "^0.24.1",
"bcryptjs": "^3.0.2",
"framer-motion": "^12.23.12",
"lucide-react": "^0.542.0",
"mongoose": "^8.18.0",
"next": "15.5.0",
"next-auth": "^4.24.11",
"react": "19.1.0",
"react-dom": "19.1.0",
"recharts": "^3.2.0",
"zod": "^4.1.5"
}{
"@eslint/eslintrc": "^3",
"@tailwindcss/postcss": "^4",
"@types/node": "20.19.13",
"@types/react": "19.1.12",
"@types/react-dom": "^19",
"eslint": "^9",
"eslint-config-next": "15.5.0",
"tailwindcss": "^4",
"typescript": "5.9.2"
}- @google/generative-ai: Powers the AI study coach functionality
- bcryptjs: Password hashing for secure authentication
- framer-motion: Smooth animations and transitions
- lucide-react: Beautiful icons throughout the application
- mongoose: MongoDB object modeling for database operations
- next-auth: Authentication and session management
- recharts: Data visualization for analytics and progress tracking
- zod: TypeScript-first schema validation
Before running this project, ensure you have the following installed:
- Node.js (version 18 or higher)
- npm, yarn, pnpm, or bun package manager
- MongoDB database (local or cloud instance)
- Google AI API Key (for AI features)
-
Clone the repository:
git clone https://github.com/tetrabytes-uom/tetrabytes_hackelite2.0.git cd tetrabytes_hackelite2.0 -
Install dependencies:
npm install # or yarn install # or pnpm install # or bun install
-
Environment Setup: Create a
.env.localfile in the root directory with the following variables:MONGODB_URI=mongodb+srv://username:password@cluster.mongodb.net/planbee NEXTAUTH_SECRET=your-nextauth-secret-key-here NEXTAUTH_URL=http://localhost:3002 GEMINI_API_KEY=your-gemini-api-key-here
MONGODB_URI: Connection string for your MongoDB databaseNEXTAUTH_SECRET: Secret key for JWT token encryption (generate a random string)NEXTAUTH_URL: Base URL of your applicationGOOGLE_AI_API_KEY: API key from Google AI Studio for the AI study coachNEXT_PUBLIC_APP_URL: Public URL for client-side access (must start with NEXTPUBLIC)- Email variables: For sending notifications (optional, requires email service setup)
- Analytics variables: For tracking and error monitoring (optional)
-
Database Setup: Ensure MongoDB is running locally or update
MONGODB_URIto point to your cloud database.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
The application will automatically reload as you make changes to the code.
- Sign Up: Create an account or sign in with your preferred method
- Set Your Goal: Tell the AI coach what you want to learn (e.g., "AWS certification in 8 weeks")
- Get Your Plan: AI generates a personalized study schedule
- Track Progress: Use the dashboard to monitor your learning journey
- Stay Motivated: Earn streaks and badges as you complete tasks
- AI Study Coach: Chat with the AI to create or modify study plans
- Manual Goal Creation: Set up custom study goals with specific timelines
- Progress Analytics: View detailed insights about your learning patterns
- Schedule Management: Adjust your study schedule as life happens
tetrabytes_hackelite2.0/
βββ public/ # Static assets
β βββ Bee.png # App logo
β βββ [other assets]
βββ src/
β βββ app/ # Next.js App Router
β β βββ api/ # API routes
β β β βββ ai-generated-schedule/
β β β βββ analytics/
β β β βββ auth/
β β β βββ availability/
β β β βββ study-plans/
β β βββ components/ # Reusable UI components
β β β βββ ai-coach/ # AI chat components
β β β βββ layouts/ # Layout components
β β β βββ UI/ # Basic UI components
β β βββ lib/ # Utility libraries
β β β βββ auth.ts # Authentication config
β β β βββ mongodb.ts # Database connection
β β βββ models/ # Database models
β β βββ Availability.ts
β β βββ StudyPlan.ts
β β βββ User.ts
β βββ types/ # TypeScript type definitions
βββ package.json
βββ tailwind.config.js
βββ next.config.ts
βββ tsconfig.json
POST /api/auth/[...nextauth]- NextAuth.js authentication
GET /api/study-plans- Get user's study plansPOST /api/study-plans- Create new study planGET /api/study-plans/[id]- Get specific study planPUT /api/study-plans/[id]- Update study planDELETE /api/study-plans/[id]- Delete study plan
POST /api/ai-generated-schedule- Generate AI study plan
GET /api/analytics- Get user analytics data
GET /api/availability- Get user availabilityPOST /api/register- User registration
We welcome contributions! Here's how you can help:
- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature
- Make your changes and commit:
git commit -m 'Add amazing feature' - Push to the branch:
git push origin feature/amazing-feature
- Open a Pull Request
- Follow the existing code style and TypeScript conventions
- Write meaningful commit messages
- Test your changes thoroughly
- Update documentation as needed
PlanBee is developed by TetraBytes for Hackelite 2.0:
- Ishan Hansaka Silva
- T. M. Heshan Maduwantha Yatigammana
- U. Chami Praveesha De Silva
- Maleesha Nuwanthi Kolombage
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with Next.js and Tailwind CSS
- AI powered by Google Generative AI
- Icons from Lucide React
- Animations with Framer Motion
Made by TetraBytes
Transforming self-directed learning, one study plan at a time π