Skip to content

Landlord App – Flask backend for managing tenants, payments, and rent reminders. Includes scheduled SMS reminders, REST endpoints, and pytest suite with SQLite test DB

License

Notifications You must be signed in to change notification settings

lush-is-him/landlord_app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Landlord App (Flask)

Setup

# 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

Run the server

./venv/Scripts/python.exe app.py
# App runs on http://127.0.0.1:5000

Run tests

./venv/Scripts/python.exe -m pytest -q
# with coverage
./venv/Scripts/python.exe -m pytest --cov=.

Endpoints

  • 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

Notes

  • Tests use a temporary SQLite DB via the app factory.
  • SMS sending is safely stubbed in tests; in dev, install and configure africastalking.

About

Landlord App – Flask backend for managing tenants, payments, and rent reminders. Includes scheduled SMS reminders, REST endpoints, and pytest suite with SQLite test DB

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages