Sofly is a web application designed to simulate the operations of an insurance company, allowing users to interact with fictional insurance products. The project aims to demonstrate web development skills and the integration of machine learning into a web application.
- Insurance Policy Management: Create, view, and manage fictional insurance policies.
- Claims Processing: Simulate the submission and processing of insurance claims.
- Machine Learning Integration: Utilizes machine learning models to assess risk and predict claim outcomes.
The underlying ML model considers the following parameters to estimate sofa value/risk:
| Feature | Description | Type (Example) |
|---|---|---|
| Dimensions | The overall size of furniture | Numeric |
| Is sofa | Whether the furniture is sofa | Boolean (0 or 1) |
| Is chair | Whether the furniture is a chair | Boolean (0 or 1) |
| Is table | Whether the furniture is a table | Boolean (0 or 1) |
| Is leather | Whether the furniture is leather | Boolean (0 or 1) |
| Is fabric | Whether the furniture is fabric | Boolean (0 or 1) |
| Is none | Whether the furniture has uncategorized material | Boolean (0 or 1) |
Note: The website's input forms should ideally guide the user to provide data matching the format and units the model expects.
- User registration and authentication.
- Browse fictional insurance products.
- Generate insurances
- User dashboard to view policies or quotes.
- Backend: Python, Flask, Poetry
- Machine Learning: Scikit-learn, Pandas, NumPy
- Frontend: HTML, CSS, JavaScript
- Database: MariaDB / MySQL
- Deployment: Poetry, Python environment
- Flask: A lightweight WSGI web application framework.
- BS4: Beautiful Soup for parsing HTML and XML documents.
- Pandas: A powerful data manipulation and analysis library.
- XGBoost: An optimized distributed gradient boosting library.
- Loguru: A library for logging in Python.
- Pyhocon: A library for handling HTTP requests.
- PyJWT: A library for encoding and decoding JSON Web Tokens.
- Coverage: A tool for measuring code coverage of Python programs.
These instructions will help you set up and run the Sofly website on your local machine for development and testing.
- Python (Version 3.8+ recommended)
- Poetry for backend dependency management.
- MariaDB or MySQL for the database.
This project uses Poetry for managing Python dependencies. If you don't have Poetry installed, the recommended way is using pipx:
- Install pipx: If you don't have pipx, follow the official pipx installation guide.
- Install Poetry:
Verify the installation:
pipx install poetry
poetry --version
- Clone the repository:
git clone [https://github.com/Trup10ka/Sofly.git](https://github.com/Trup10ka/Sofly.git)
- Navigate to the project directory:
cd Sofly - Install Backend Dependencies:
poetry install
Once dependencies are installed and the environment is configured, you can run the development web server:
poetry run python -m runThis project is licensed under the MIT License. See the LICENSE file for details.
Sofly is a fictional application created for educational and demonstration purposes only. It is not intended for actual insurance operations or real-world use.