834 B
834 B
Getting Started
Prerequisites
- Docker
- Python 3.7+
Installation
- Clone the repository
- Build the Docker image:
docker build -t loan-approval-predictor .
- Run the container:
docker run -p 8000:8000 loan-approval-predictor
Development
To set up a development environment:
- Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Run the application:
uvicorn main:app --reload
The application will be available at http://localhost:8000.
Testing
Run the tests using:
pytest test_app.py
Deployment
The application includes a GitHub Actions workflow for CI/CD in the .github/workflows/deploy.yml file.