AI-powered question paper generator with intelligent assessment creation.
graph TB
A[Next.js Frontend] --> B[FastAPI Backend]
B --> C[PostgreSQL Database]
B --> D[Redis Cache]
B --> E[HuggingFace Transformers]
B --> F[ReportLab PDF Generator]
subgraph "Frontend Layer"
A
end
subgraph "Backend Layer"
B
end
subgraph "Data Layer"
C
D
end
subgraph "AI Services"
E
F
end
B -->|JWT Auth| G[Authentication Service]
B -->|CRUD| H[Question Management]
B -->|ML| I[Paper Generation Engine]
B -->|PDF| J[Document Service]
# Backend
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend
cd frontend
npm install
npm run dev- Smart Paper Generation: AI-driven question selection with difficulty balancing
- Professional PDF Output: Customizable, watermarked exam papers
- Role-based Access: Admin, Teacher, and Student permissions
- Modern UI: Responsive Next.js frontend with glass-morphism design
- RESTful API: Comprehensive OpenAPI documentation
- FastAPI • PostgreSQL • SQLAlchemy • JWT Auth
- ReportLab • HuggingFace Transformers • scikit-learn
- Next.js 14 • React 18 • Tailwind CSS • Framer Motion
- Radix UI • React Hook Form • Zod Validation
POST /auth/register•POST /auth/login•POST /auth/logout
POST /questions/add•GET /questions/list•PUT /questions/update/{id}
POST /papers/generate•GET /papers/my-papers•GET /papers/download/{id}
POST /ai/generate-question•POST /ai/predict-difficulty
- API Docs: http://localhost:8000/docs
- Interactive UI: http://localhost:8000/redoc
- Frontend: http://localhost:3000
docker-compose up --buildDATABASE_URL=postgresql://user:pass@host:5432/db
JWT_SECRET=your_secret_key
USE_AI=trueMIT License
Built with modern web technologies