A web application that simplifies complex legal documents into plain, easy-to-understand language using AI.
- Python 3.8+ installed
- Node.js 16+ installed
- Google Gemini API key
Backend (Python):
pip install -r requirements.txtFrontend (Node.js):
cd frontend
npm install
cd ..- Get your Gemini API key from Google AI Studio
- Create a
.envfile in the root directory:
GEMINI_API_KEY=your_actual_api_key_hereStart Backend:
# Activate virtual environment (if using one)
.\.venv\Scripts\activate
# Start the FastAPI server
uvicorn backend.main:app --reloadBackend will run at: http://127.0.0.1:8000
Start Frontend (in a new terminal):
cd frontend
npm run devFrontend will run at: http://localhost:5173
Open your browser and go to: http://localhost:5173
Backend won't start:
- Make sure you're in the virtual environment:
.\.venv\Scripts\activate - Check that GEMINI_API_KEY is set in
.envfile - Ensure all dependencies are installed:
pip install -r requirements.txt
Frontend won't start:
- Make sure Node.js is installed:
node --version - Install dependencies:
cd frontend && npm install - Check for port conflicts (default is 5173)
API key issues:
- Verify your Gemini API key is valid
- Check that
.envfile exists in the root directory - Make sure the key starts with "AIzaSy"
POST /simplify- Simplify legal documentsPOST /ask- Ask questions about documentsGET /health- Health check
This tool provides simplified explanations only. It is NOT legal advice. Always consult a qualified lawyer for professional guidance on any legal matters.