This guide details how to run the application using either the Streamlit UI (Standalone) or the React UI (Client-Server).
Ensure you have the following installed:
- Python 3.8+
- Node.js 18+ (for React UI only)
- Google Chrome (for Selenium scraping)
The Streamlit version runs as a single python application.
Open your terminal in the project root C:\Users\admin\PycharmProjects\PythonProject1.
# Activate Virtual Environment (if not already active)
.\.venv\Scripts\Activate.ps1
# Install Dependencies
pip install -r requirements.txtstreamlit run app.py- The app will open automatically in your browser at
http://localhost:8501. - This runs the UI and logic together in one process.
The React version requires running two separate terminals: one for the Python Backend API and one for the Next.js Frontend.
OPEN A NEW TERMINAL in the project root.
# 1. Activate Virtual Environment
.\.venv\Scripts\Activate.ps1
# 2. Install Dependencies (if not done)
pip install -r requirements.txt
# 3. Start the API Server
python api_server.py- You should see:
[INFO] API URL: http://localhost:8000 - Keep this terminal open.
OPEN A SEPARATE TERMINAL.
# 1. Navigate to the UI directory
cd nexus-scraper-ui
# 2. Install Node Dependencies (First time only)
npm install
# 3. Start the Development Server
npm run dev- You will see:
Ready in [...] http://localhost:3000 - Open http://localhost:3000 in your browser.
- Port Config:
- Backend runs on Port 8000.
- Frontend runs on Port 3000.
- Streamlit runs on Port 8501.
- Database: The app uses local artifacts/files; no database setup is required for this version.
- API Keys: Ensure your
.envfile (if used) or environment variables are set up for Gemini API ifai_agent.pyrequires it.