# create venv (if not created)
python -m venv venv
# activate
./venv/Scripts/Activate.ps1
# install deps
./venv/Scripts/python.exe -m pip install -r requirements.txt./venv/Scripts/python.exe app.py
# App runs on http://127.0.0.1:5000./venv/Scripts/python.exe -m pytest -q
# with coverage
./venv/Scripts/python.exe -m pytest --cov=.- Tenants:
POST/GET /tenants,GET/PUT/DELETE /tenants/<id> - Payments:
POST/GET /payments,GET /payments/tenant/<tenant_id>,PUT/DELETE /payments/<id>,GET /payments/check-late,GET /payments/tenant/<tenant_id>/timeline - Reminders:
GET/POST /reminders,PUT /reminder/<id>/mark_sent,POST /generate_reminders
- Tests use a temporary SQLite DB via the app factory.
- SMS sending is safely stubbed in tests; in dev, install and configure
africastalking.