- Python 3.11 (for backend)
- Node.js (v18+ recommended, for frontend)
-
Create and activate a virtual environment (recommended):
On Windows:
python -m venv venv venv\Scripts\activate
On macOS/Linux:
python3 -m venv venv source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Run the FastAPI server:
uvicorn agent_web_scraper:app --host 0.0.0.0 --port 8000 --loop asyncio
- The server will be available at http://localhost:8000
- Make sure you run the command from the directory containing
agent_web_scraper.py
-
Navigate to the frontend directory:
cd compliance-insight-generator-main -
Install frontend dependencies:
npm install
-
Run the frontend development server:
npm run dev
- The frontend will usually be available at http://localhost:5173 (check your terminal for the actual port)
You can now access the backend API at port 8000 and the frontend UI at port 5173 (or as shown in your terminal). Make sure both servers are running for full functionality.