Lessora AI is an AI-powered educational platform designed to help teachers create organized, professional, and curriculum-ready lesson plans in minutes. By transforming simple teacher inputs into structured lesson plans, activities, objectives, and assessments, Lessora AI reduces preparation time and allows educators to focus more on teaching and student engagement.
Lessora AI provides teachers with multiple ways to access AI-powered lesson planning:
- Mobile App: React Native mobile application for iOS and Android
- Web Portal: React-based web application for browser access
- Admin Dashboard: Administrative interface for user management
The platform uses OpenAI's GPT models to generate comprehensive, curriculum-aligned lesson plans from minimal teacher input.
- AI-Powered Lesson Generation: Create complete lesson plans from topic, grade level, duration, and learning goals
- Multiple Templates: Support for various lesson plan formats including DepEd semi-detailed templates
- Lesson Plan History: View, edit, and reuse previously generated lesson plans
- Document Export: Export lesson plans in DOC, PDF, and DOCX formats
- User Authentication: Secure account registration and login
- AI Response Credits: Fair usage system with credit-based generation limits
- Mobile & Web Access: Use the mobile app or web portal based on preference
- User Management: Create, view, and manage teacher accounts
- Admin Dashboard: Monitor platform usage and user activity
- Separate Admin Portal: Dedicated administrative interface
Lessora AI follows a client-server architecture with three main components:
- Technology: React Native with Expo SDK 54.0.0
- UI Framework: NativeWind (Tailwind CSS for React Native)
- Navigation: React Navigation with bottom tabs
- Key Screens:
- Onboarding and authentication
- Dashboard with recent plans
- Lesson plan generation
- History and preview
- Export functionality
- Technology: React 18 + TypeScript + Vite
- Styling: Tailwind CSS
- Features:
- User portal for teachers (login, register, generate, history)
- Admin portal for user management
- Responsive design for desktop and mobile browsers
- Technology: Node.js + Express + TypeScript
- Database: MongoDB with Mongoose ODM
- Authentication: JWT tokens with bcrypt password hashing
- AI Integration: OpenAI API (GPT-4o-mini)
- Architecture Pattern: Routes β Controllers β Services β Schemas/Models
/api/auth - User authentication (register, login)
/api/admin - Admin operations (user management)
/api/ai - AI lesson plan generation and history
- Node.js 18+ and npm
- MongoDB instance (local or cloud)
- OpenAI API key
- Expo CLI (for mobile development)
-
Clone the repository
git clone <repository-url> cd lessora-ai
-
Install dependencies
# Install root dependencies npm install # Install server dependencies cd server-side npm install # Install mobile app dependencies cd ../client-side npm install # Install web portal dependencies cd ../client-side-admin npm install
-
Configure environment variables
Create
.envfiles in theserver-side/,client-side/, andclient-side-admin/directories.See Environment Configuration for detailed setup instructions and security guidelines.
-
Start the development servers
# Terminal 1: Start the backend server cd server-side npm run dev # Terminal 2: Start the mobile app cd client-side npm start # Terminal 3: Start the web portal cd client-side-admin npm run dev
The repository includes bootstrap scripts for quick setup:
PowerShell (Windows)
./scripts/bootstrap.ps1Bash (macOS/Linux)
./scripts/bootstrap.shlessora-ai/
βββ client-side/ # React Native mobile app
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ context/ # React contexts (Auth, Loading)
β β βββ navigation/ # Navigation configuration
β β βββ screens/ # Screen components
β β βββ services/ # API service layer
β β βββ utils/ # Utility functions
β βββ App.tsx # App entry point
βββ client-side-admin/ # React web portal
β βββ src/
β β βββ components/ # Shared components
β β βββ pages/ # Page components
β β βββ services/ # API service layer
β βββ index.html # Web entry point
βββ server-side/ # Node.js backend
β βββ src/
β β βββ controllers/ # Request handlers
β β βββ middleware/ # Express middleware
β β βββ routes/ # API routes
β β βββ schemas/ # Mongoose & Zod schemas
β β βββ services/ # Business logic
β β βββ config/ # Configuration files
β βββ server.ts # Server entry point
βββ docs/ # Documentation
β βββ ai/ # AI agent documentation
β βββ specs/ # Feature specifications
β βββ plans/ # Implementation plans
βββ scripts/ # Automation scripts
For any feature work involving client-server communication:
-
Read the documentation
docs/ai/commands.md- Available commandsdocs/ai/standards.md- Coding standardsdocs/ai/lessora-structure-workflow.md- API development workflow
-
Create task artifacts
npm run workflow -- scaffold --slug <topic> --artifacts bundle
-
Follow the layer order
- Server: Routes β Controllers β Services β Schemas/Models
- Client: Screens β Services β API
-
Validate your changes
# PowerShell ./scripts/check.ps1 # Bash ./scripts/check.sh
# Run all validation checks
npm run workflow -- check
# Type checking
cd client-side && npx tsc --noEmit
cd server-side && npx tsc --noEmit
# Run tests (when available)
npm test- Project Context - Product overview and key facts
- Architecture - System design and module boundaries
- Quickstart - Fastest path from idea to implementation
- Commands - Available CLI commands
- Lessora Structure Workflow - API development guidelines
- Architecture Flows - Data flows and interfaces
- Standards - Coding standards and conventions
The project uses a structured workflow for managing development tasks:
- Specs (
docs/specs/) - What should change and why - Plans (
docs/plans/) - How the work will be carried out - Tasks (
docs/ai/tasks/) - Current execution state
Use the workflow CLI to manage these artifacts:
npm run workflow -- scaffold --slug <topic> --artifacts bundle
npm run workflow -- check
npm run workflow -- finalize- Frontend: React Native (Expo), React, TypeScript, Tailwind CSS, NativeWind
- Backend: Node.js, Express, TypeScript, MongoDB, Mongoose
- AI: OpenAI API (GPT-4o-mini)
- Authentication: JWT, bcrypt
- Validation: Zod
- Development: Vite, Metro bundler, ESLint, Prettier
- Read the documentation in
docs/ai/ - Follow the structure workflow in
docs/ai/lessora-structure-workflow.md - Create task briefs for non-trivial changes
- Run validation checks before committing
- Keep changes focused and well-documented
This project is licensed under the Apache License 2.0. See LICENSE for the full license text.
- Jims
Note: This is an active development project. Features and documentation are continuously evolving. Always refer to the latest documentation in the docs/ directory for current implementation details.
