A web app that instantly generates LaTeX-formatted mock test PDFs from worksheets and tests.
- Upload PDF worksheets or tests
- Paste text content directly
- AI-powered question extraction and formatting
- LaTeX output generation
- PDF preview and download
- Responsive web interface
- Next.js 15 - React framework with App Router
- TypeScript - Type safety
- Tailwind CSS - Styling
- Framer Motion - Animations
- React PDF - PDF rendering
- Monaco Editor - Code editing
- FastAPI - Python web framework
- Google Gemini - AI service for content processing
- LaTeX - Document formatting
- Docker - Containerization
- Node.js 18+ and npm
- Python 3.8+
- Docker (optional)
- Clone the repository:
git clone https://github.com/yourusername/mockmate.git
cd mockmate- Install frontend dependencies:
cd frontend
npm install- Install backend dependencies:
cd ../backend
pip install -r requirements.txt- Set up environment variables:
# Backend - create .env file
GEMINI_API_KEY=your_gemini_api_key_here- Start the backend server:
cd backend
python main.py- Start the frontend development server:
cd frontend
npm run dev- Open http://localhost:3000 in your browser.
cd frontend
npm run build
npm startcd backend
# Using Docker
docker build -t mockmate-backend .
docker run -p 8000:8000 mockmate-backendmockmate/
├── frontend/ # Next.js frontend application
│ ├── src/
│ │ ├── app/ # App Router pages
│ │ └── components/ # React components
│ ├── public/ # Static assets
│ └── package.json
├── backend/ # FastAPI backend application
│ ├── api/
│ │ ├── controllers/ # API route handlers
│ │ ├── models/ # Data models
│ │ └── services/ # Business logic
│ ├── latex-service/ # LaTeX processing service
│ └── main.py # FastAPI app entry point
└── README.md
This project is licensed under the MIT License - see the LICENSE file for details.
The application is deployed at:
- Frontend: https://simplymockit.com
- Backend: Configured for production deployment