Skip to content

Repository files navigation

PaperForge

AI-powered question paper generator with intelligent assessment creation.

System Architecture

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]
Loading

Quick Start

# Backend
pip install -r requirements.txt
uvicorn app.main:app --reload

# Frontend
cd frontend
npm install
npm run dev

Features

  • 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

Tech Stack

Backend

  • FastAPIPostgreSQLSQLAlchemyJWT Auth
  • ReportLabHuggingFace Transformersscikit-learn

Frontend

  • Next.js 14React 18Tailwind CSSFramer Motion
  • Radix UIReact Hook FormZod Validation

API Endpoints

Authentication

  • POST /auth/registerPOST /auth/loginPOST /auth/logout

Questions

  • POST /questions/addGET /questions/listPUT /questions/update/{id}

Papers

  • POST /papers/generateGET /papers/my-papersGET /papers/download/{id}

AI

  • POST /ai/generate-questionPOST /ai/predict-difficulty

Documentation

Deployment

Docker

docker-compose up --build

Environment Variables

DATABASE_URL=postgresql://user:pass@host:5432/db
JWT_SECRET=your_secret_key
USE_AI=true

License

MIT License


Built with modern web technologies

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages