diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..e81c242 Binary files /dev/null and b/.DS_Store differ diff --git a/README.md b/README.md new file mode 100644 index 0000000..766577a --- /dev/null +++ b/README.md @@ -0,0 +1,72 @@ +--- + +# Setup + +This guide provides instructions on how to set up and run the Python application in a virtual environment. + +## Prerequisites + +Ensure you have the following installed on your system: +- Python 3.x +- pip (Python package installer) + +## Steps to Set Up the Application + +### 1. Clone the Repository + +First, clone the repository to your local machine: + +```bash +git clone https://github.com/username/repository.git +cd repository +``` + +### 2. Create a Virtual Environment + +Create a virtual environment to isolate your dependencies: + +```bash +python3 -m venv venv +``` + +### 3. Activate the Virtual Environment + +Activate the virtual environment: + +- **For Windows:** + ```bash + venv\Scripts\activate + ``` + +- **For macOS/Linux:** + ```bash + source venv/bin/activate + ``` + +Once activated, you should see `(venv)` at the beginning of your terminal prompt. + +### 4. Install Dependencies + +Install the required dependencies listed in `requirements.txt`: + +```bash +pip install -r requirements.txt +``` + +### 5. Run the Application + +Start the application: + +```bash +flask run +``` + + + +### 6. Deactivate the Virtual Environment + +When you're done, deactivate the virtual environment: + +```bash +deactivate +``` diff --git a/app.log b/app.log new file mode 100644 index 0000000..d8a163a --- /dev/null +++ b/app.log @@ -0,0 +1,238 @@ +2025-03-20 14:13:09,801 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on all addresses (0.0.0.0) + * Running on http://127.0.0.1:5000 + * Running on http://192.168.43.192:5000 +2025-03-20 14:13:09,802 - INFO - Press CTRL+C to quit +2025-03-20 14:13:09,804 - INFO - * Restarting with stat +2025-03-20 14:13:10,513 - WARNING - * Debugger is active! +2025-03-20 14:13:10,534 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:13:18,851 - INFO - 127.0.0.1 - - [20/Mar/2025 14:13:18] "GET / HTTP/1.1" 404 - +2025-03-20 14:13:19,654 - INFO - 127.0.0.1 - - [20/Mar/2025 14:13:19] "GET /favicon.ico HTTP/1.1" 404 - +2025-03-20 14:14:03,987 - INFO - 127.0.0.1 - - [20/Mar/2025 14:14:03] "GET /EligibilityCheck HTTP/1.1" 405 - +2025-03-20 14:14:14,898 - INFO - 127.0.0.1 - - [20/Mar/2025 14:14:14] "GET /EligibilityCheck HTTP/1.1" 405 - +2025-03-20 14:14:21,063 - INFO - 127.0.0.1 - - [20/Mar/2025 14:14:21] "POST /EligibilityCheck HTTP/1.1" 415 - +2025-03-20 14:14:40,328 - INFO - 127.0.0.1 - - [20/Mar/2025 14:14:40] "POST /EligibilityCheck HTTP/1.1" 415 - +2025-03-20 14:15:52,642 - INFO - EligibilityCheck request received: {'hi': 'bye'} +2025-03-20 14:15:52,643 - INFO - Processing EligibilityCheck request +2025-03-20 14:15:52,647 - ERROR - An error occurred during EligibilityCheck processing: {'income': ['Missing data for required field.'], 'user_id': ['Missing data for required field.'], 'credit_score': ['Missing data for required field.'], 'hi': ['Unknown field.']} +Traceback (most recent call last): + File "/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/eligibility_check.py", line 23, in process_request + validated_data = schema.load(data) # Raises an error if invalid + File "/Users/viviandagbue/Documents/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 722, in load + return self._do_load( + File "/Users/viviandagbue/Documents/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 909, in _do_load + raise exc +marshmallow.exceptions.ValidationError: {'income': ['Missing data for required field.'], 'user_id': ['Missing data for required field.'], 'credit_score': ['Missing data for required field.'], 'hi': ['Unknown field.']} +2025-03-20 14:15:52,683 - INFO - 127.0.0.1 - - [20/Mar/2025 14:15:52] "POST /EligibilityCheck HTTP/1.1" 200 - +2025-03-20 14:27:54,479 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:27:54,721 - INFO - * Restarting with stat +2025-03-20 14:27:56,270 - WARNING - * Debugger is active! +2025-03-20 14:27:56,301 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:00,496 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:00,704 - INFO - * Restarting with stat +2025-03-20 14:28:01,613 - WARNING - * Debugger is active! +2025-03-20 14:28:01,691 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:03,809 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:04,018 - INFO - * Restarting with stat +2025-03-20 14:28:04,870 - WARNING - * Debugger is active! +2025-03-20 14:28:04,886 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:07,012 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:07,200 - INFO - * Restarting with stat +2025-03-20 14:28:08,193 - WARNING - * Debugger is active! +2025-03-20 14:28:08,206 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:10,289 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:10,503 - INFO - * Restarting with stat +2025-03-20 14:28:11,437 - WARNING - * Debugger is active! +2025-03-20 14:28:11,456 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:13,532 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:13,750 - INFO - * Restarting with stat +2025-03-20 14:28:14,774 - WARNING - * Debugger is active! +2025-03-20 14:28:14,815 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:17,101 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:17,262 - INFO - * Restarting with stat +2025-03-20 14:28:18,410 - WARNING - * Debugger is active! +2025-03-20 14:28:18,428 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:19,512 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:28:19,690 - INFO - * Restarting with stat +2025-03-20 14:28:20,801 - WARNING - * Debugger is active! +2025-03-20 14:28:20,936 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:41,355 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/config.py', reloading +2025-03-20 14:28:41,499 - INFO - * Restarting with stat +2025-03-20 14:28:42,243 - WARNING - * Debugger is active! +2025-03-20 14:28:42,255 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:45,329 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/config.py', reloading +2025-03-20 14:28:45,519 - INFO - * Restarting with stat +2025-03-20 14:28:46,382 - WARNING - * Debugger is active! +2025-03-20 14:28:46,403 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:28:51,552 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/config.py', reloading +2025-03-20 14:28:51,712 - INFO - * Restarting with stat +2025-03-20 14:28:52,758 - WARNING - * Debugger is active! +2025-03-20 14:28:52,792 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:29:13,307 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:29:13,443 - INFO - * Restarting with stat +2025-03-20 14:29:15,136 - WARNING - * Debugger is active! +2025-03-20 14:29:15,155 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:29:24,320 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/main.py', reloading +2025-03-20 14:29:24,462 - INFO - * Restarting with stat +2025-03-20 14:29:25,635 - WARNING - * Debugger is active! +2025-03-20 14:29:25,668 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:29:39,423 - INFO - 127.0.0.1 - - [20/Mar/2025 14:29:39] "POST /health HTTP/1.1" 405 - +2025-03-20 14:30:17,001 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/routes/__init__.py', reloading +2025-03-20 14:30:17,444 - INFO - * Restarting with stat +2025-03-20 14:30:20,724 - WARNING - * Debugger is active! +2025-03-20 14:30:20,742 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:37:21,240 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/__init__.py', reloading +2025-03-20 14:37:21,737 - INFO - * Restarting with stat +2025-03-20 14:37:23,075 - WARNING - * Debugger is active! +2025-03-20 14:37:23,088 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:39:23,292 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/verify_api_key.py', reloading +2025-03-20 14:39:23,563 - INFO - * Restarting with stat +2025-03-20 14:39:25,229 - WARNING - * Debugger is active! +2025-03-20 14:39:25,254 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:39:26,355 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/verify_api_key.py', reloading +2025-03-20 14:39:26,517 - INFO - * Restarting with stat +2025-03-20 14:39:27,457 - WARNING - * Debugger is active! +2025-03-20 14:39:27,476 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:41:20,187 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/encryption.py', reloading +2025-03-20 14:41:20,429 - INFO - * Restarting with stat +2025-03-20 14:41:21,622 - WARNING - * Debugger is active! +2025-03-20 14:41:21,634 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:42:03,558 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/cors.py', reloading +2025-03-20 14:42:03,709 - INFO - * Restarting with stat +2025-03-20 14:42:05,112 - WARNING - * Debugger is active! +2025-03-20 14:42:05,137 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:42:30,565 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/cors.py', reloading +2025-03-20 14:42:30,976 - INFO - * Restarting with stat +2025-03-20 14:42:32,051 - WARNING - * Debugger is active! +2025-03-20 14:42:32,065 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:43:14,856 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:43:15,006 - INFO - * Restarting with stat +2025-03-20 14:43:16,050 - WARNING - * Debugger is active! +2025-03-20 14:43:16,062 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:03,834 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:04,003 - INFO - * Restarting with stat +2025-03-20 14:44:05,142 - WARNING - * Debugger is active! +2025-03-20 14:44:05,182 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:09,364 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:09,512 - INFO - * Restarting with stat +2025-03-20 14:44:10,512 - WARNING - * Debugger is active! +2025-03-20 14:44:10,548 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:11,658 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:11,834 - INFO - * Restarting with stat +2025-03-20 14:44:12,885 - WARNING - * Debugger is active! +2025-03-20 14:44:12,904 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:37,478 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:37,636 - INFO - * Restarting with stat +2025-03-20 14:44:38,872 - WARNING - * Debugger is active! +2025-03-20 14:44:38,889 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:52,116 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:52,260 - INFO - * Restarting with stat +2025-03-20 14:44:53,048 - WARNING - * Debugger is active! +2025-03-20 14:44:53,061 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:54,180 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:54,328 - INFO - * Restarting with stat +2025-03-20 14:44:55,536 - WARNING - * Debugger is active! +2025-03-20 14:44:55,549 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:56,596 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:44:56,745 - INFO - * Restarting with stat +2025-03-20 14:44:57,615 - WARNING - * Debugger is active! +2025-03-20 14:44:57,627 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:44:59,795 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:45:00,013 - INFO - * Restarting with stat +2025-03-20 14:45:00,839 - WARNING - * Debugger is active! +2025-03-20 14:45:00,854 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:45:05,953 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:45:06,143 - INFO - * Restarting with stat +2025-03-20 14:45:06,976 - WARNING - * Debugger is active! +2025-03-20 14:45:06,992 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:45:09,077 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:45:09,366 - INFO - * Restarting with stat +2025-03-20 14:45:10,260 - WARNING - * Debugger is active! +2025-03-20 14:45:10,491 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:45:11,571 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:45:11,748 - INFO - * Restarting with stat +2025-03-20 14:45:12,615 - WARNING - * Debugger is active! +2025-03-20 14:45:12,631 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:45:14,690 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/middlewares/request_validator.py', reloading +2025-03-20 14:45:14,821 - INFO - * Restarting with stat +2025-03-20 14:45:15,576 - WARNING - * Debugger is active! +2025-03-20 14:45:15,597 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:47:55,793 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/__init__.py', reloading +2025-03-20 14:47:56,010 - INFO - * Restarting with stat +2025-03-20 14:48:23,203 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on all addresses (0.0.0.0) + * Running on http://127.0.0.1:5000 + * Running on http://192.168.43.192:5000 +2025-03-20 14:48:23,204 - INFO - Press CTRL+C to quit +2025-03-20 14:48:23,208 - INFO - * Restarting with stat +2025-03-20 14:48:25,258 - WARNING - * Debugger is active! +2025-03-20 14:48:25,331 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:48:30,183 - INFO - 127.0.0.1 - - [20/Mar/2025 14:48:30] "POST /api/health HTTP/1.1" 405 - +2025-03-20 14:48:35,969 - INFO - 127.0.0.1 - - [20/Mar/2025 14:48:35] "GET /api/health HTTP/1.1" 200 - +2025-03-20 14:53:13,504 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/schemas/eligibility_check.py', reloading +2025-03-20 14:53:14,721 - INFO - * Restarting with stat +2025-03-20 14:53:20,279 - WARNING - * Debugger is active! +2025-03-20 14:53:20,384 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:54:16,579 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/eligibility_check.py', reloading +2025-03-20 14:54:17,245 - INFO - * Restarting with stat +2025-03-20 14:54:21,211 - WARNING - * Debugger is active! +2025-03-20 14:54:21,298 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:54:32,913 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/eligibility_check.py', reloading +2025-03-20 14:54:33,587 - INFO - * Restarting with stat +2025-03-20 14:54:36,684 - WARNING - * Debugger is active! +2025-03-20 14:54:36,850 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:54:38,191 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/eligibility_check.py', reloading +2025-03-20 14:54:38,906 - INFO - * Restarting with stat +2025-03-20 14:54:44,502 - WARNING - * Debugger is active! +2025-03-20 14:54:44,539 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:55:04,187 - INFO - 127.0.0.1 - - [20/Mar/2025 14:55:04] "GET /api/EligibilityCheck HTTP/1.1" 405 - +2025-03-20 14:55:10,064 - INFO - Processing EligibilityCheck request +2025-03-20 14:55:10,073 - ERROR - An error occurred during EligibilityCheck processing: {'lien_amount': ['Missing data for required field.'], 'lienAmount': ['Unknown field.']} +Traceback (most recent call last): + File "/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/eligibility_check.py", line 23, in process_request + validated_data = schema.load(data) # Raises an error if invalid + File "/Users/viviandagbue/Documents/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 722, in load + return self._do_load( + File "/Users/viviandagbue/Documents/venv/lib/python3.9/site-packages/marshmallow/schema.py", line 909, in _do_load + raise exc +marshmallow.exceptions.ValidationError: {'lien_amount': ['Missing data for required field.'], 'lienAmount': ['Unknown field.']} +2025-03-20 14:55:10,103 - INFO - 127.0.0.1 - - [20/Mar/2025 14:55:10] "POST /api/EligibilityCheck HTTP/1.1" 200 - +2025-03-20 14:55:37,613 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/schemas/eligibility_check.py', reloading +2025-03-20 14:55:38,428 - INFO - * Restarting with stat +2025-03-20 14:55:47,297 - WARNING - * Debugger is active! +2025-03-20 14:55:47,413 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:55:51,943 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/schemas/eligibility_check.py', reloading +2025-03-20 14:55:52,455 - INFO - * Restarting with stat +2025-03-20 14:55:56,940 - WARNING - * Debugger is active! +2025-03-20 14:55:56,968 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 14:56:01,718 - INFO - Processing EligibilityCheck request +2025-03-20 14:56:01,737 - INFO - 127.0.0.1 - - [20/Mar/2025 14:56:01] "POST /api/EligibilityCheck HTTP/1.1" 200 - +2025-03-20 14:59:24,543 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/schemas/select_offer.py', reloading +2025-03-20 14:59:25,271 - INFO - * Restarting with stat +2025-03-20 14:59:31,688 - WARNING - * Debugger is active! +2025-03-20 14:59:31,738 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 15:00:44,032 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/select_offer.py', reloading +2025-03-20 15:00:44,863 - INFO - * Restarting with stat +2025-03-20 15:00:52,010 - WARNING - * Debugger is active! +2025-03-20 15:00:52,134 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 15:00:53,368 - INFO - * Detected change in '/Users/viviandagbue/Documents/livelinessCheckYOLO/app/blueprints/select_offer.py', reloading +2025-03-20 15:00:53,663 - INFO - * Restarting with stat +2025-03-20 17:05:48,612 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on all addresses (0.0.0.0) + * Running on http://127.0.0.1:5000 + * Running on http://192.168.43.192:5000 +2025-03-20 17:05:48,613 - INFO - Press CTRL+C to quit +2025-03-20 17:05:48,614 - INFO - * Restarting with stat +2025-03-20 17:05:49,355 - WARNING - * Debugger is active! +2025-03-20 17:05:49,373 - INFO - * Debugger PIN: 716-001-293 +2025-03-20 17:05:52,329 - INFO - Processing EligibilityCheck request +2025-03-20 17:05:52,333 - INFO - 127.0.0.1 - - [20/Mar/2025 17:05:52] "POST /api/EligibilityCheck HTTP/1.1" 200 - +2025-03-20 17:16:19,388 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://127.0.0.1:5000 +2025-03-20 17:16:19,388 - INFO - Press CTRL+C to quit +2025-03-20 17:17:44,903 - INFO - Processing SelectOffer request +2025-03-20 17:17:44,908 - ERROR - Validation Error: {'productId': ['Missing data for required field.'], 'requestId': ['Missing data for required field.'], 'requestedAmount': ['Missing data for required field.'], 'countryCode': ['Unknown field.'], 'lienAmount': ['Unknown field.'], '$type': ['Unknown field.']} +2025-03-20 17:17:44,916 - INFO - 127.0.0.1 - - [20/Mar/2025 17:17:44] "POST /api/SelectOffer HTTP/1.1" 200 - +2025-03-20 17:45:41,511 - INFO - WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. + * Running on http://127.0.0.1:5000 +2025-03-20 17:45:41,513 - INFO - Press CTRL+C to quit diff --git a/app.py b/app.py new file mode 100644 index 0000000..f61366d --- /dev/null +++ b/app.py @@ -0,0 +1,6 @@ +from app import create_app + +app = create_app() + +if __name__ == "__main__": + app.run(host="0.0.0.0", port=5000, debug=True) diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6c17099 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,14 @@ +# Flask and Extensions +Flask==2.3.3 +Flask-SQLAlchemy==3.0.5 +Flask-Marshmallow==0.15.0 +marshmallow==3.19.0 +Flask-Cors==3.0.10 +marshmallow-sqlalchemy==0.29.0 +# mysqlclient==2.2.0 + + + +# Logging (Python Standard Library, for reference) + +