Rules in the model
Every business rule is a domain constraint with its own test. If the rule changes, the test fails before the appointment does.
1 domain → N rules · Beauty industry
Appointments and e-commerce built end to end, with the business rules in the domain
See the live site (opens in a new tab)The problem
The decision
Every business rule is a domain constraint with its own test. If the rule changes, the test fails before the appointment does.
A mandatory deposit through MercadoPago before confirming the appointment, and Google Calendar sync so the studio has a single schedule.
Gift cards, roles and audit logs: who changed which appointment and when, because in a business with deposits that stops being a detail.
The result
94
PageSpeed performance, mobile
80%
Test coverage
4
Critical rules with their own test
Next case
A self-hosting pattern, documented and repeatable
Shall we work together?
I design it, build it end to end and take ownership of keeping it running. Write to me and let's talk. I reply the same day.