Problem
A gym, salon and spa business sold packages two ways: some ran for a period of time and others for a set number of visits. Staff needed to check, at the front desk, whether a customer could still visit, and expired packages had to close on their own.
My role
Sole developer, freelance: database design, back end, front end and hosting on Heroku.
Hardest problem
Data integrity in the schema and the rules around it. Time-bound and count-bound packages follow different rules, so every visit check lives in a FormRequest built from reusable Rule objects. Invalid visits are rejected before they reach the database. A daily scheduled command expires packages with three set-based SQL UPDATEs instead of a per-row loop, so the result is the same however many packages expire that day.
Outcome
The client used the system through version 2.0.2. It has since been retired, along with the Heroku hosting, but the source code remains. The business now hires through TrabahongPinoy.
Evidence
- Demo video: Fix and Free Application version 2.0.2
- Excerpts 07–08 in code-samples: the FormRequest with custom Rules, and the scheduled bulk expiry
Play