Wage Overtime Checker
A simple Flask app to check if your pay matches expected wages including overtime. Includes automated tests with pytest.
Setup
- Clone the repository
git clone <your-repo-url>
cd wage_overtime_checker
- Create and activate a virtual environment
python -m venv .venv
source .venv/bin/activate
- Install dependencies
pip install -r requirements.txt
Run the server
python app.py
Run Tests
pytest
This will run the automated tests in test_app.py.
Usage
Send a POST request to /check-pay with JSON:
{
"hoursWorked": 50,
"hourlyRate": 15,
"totalPayReceived": 750
}
Contributors
Created September 23, 2025
Updated September 26, 2025