A multi-service loan processing application with a Streamlit frontend and multiple FastAPI backend services.
- Python 3.8 or higher
- pip (Python package installer)
- Navigate to the project directory:
cd 'Loan Agent'- Create a virtual environment:
python -m venv .venv- Activate the virtual environment:
Windows:
.\.venv\Scripts\activateLinux/Mac:
source .venv/bin/activate- Install dependencies:
pip install -r requirements.txtThe application consists of multiple services that need to be run simultaneously. Open separate terminal windows for each service.
streamlit run app.pyThe frontend will be available at http://localhost:8501
uvicorn offer_mart_server:app --host 0.0.0.0 --port 8000 --reloadAPI available at http://localhost:8000
uvicorn kyc_server:app --host 0.0.0.0 --port 8001 --reloadAPI available at http://localhost:8001
uvicorn credit_api:app --host 0.0.0.0 --port 8002 --reloadAPI available at http://localhost:8002
- Frontend (Port 8501): Streamlit-based user interface
- Offer Mart Server (Port 8000): Handles loan offers and marketplace operations
- KYC Server (Port 8001): Manages Know Your Customer verification
- Credit API (Port 8002): Processes credit checks and scoring
All services are configured with --reload flag for automatic restart on code changes during development.
- Ensure all required ports (8000, 8001, 8002, 8501) are available
- Make sure the virtual environment is activated before running any service
- Check that all dependencies are installed correctly
[Add your license information here]
[Add your contact information here]