
Case study · Team-built real-estate ERP
Rakez ERP
A real-estate ERP for a Saudi company: sales, reservations, contracts, commissions and marketing in one Arabic-first platform, built by a small team.
- Domain
- Real estate: sales, reservations, contracts, commissions
- My role
- Backend and full-stack engineer on a small team, and its largest committer
- Context
- Employer work at Rakez Real Estate Company
The operation
Sales pipelines, multi-party commissions, unit bookings and marketing budgets lived in disconnected tools, and none of them were Arabic-native.
How the system is layered
- 01
Reservations
Unit reservations with a waiting list and row locks, so two requests for the same unit cannot both succeed.
- 02
Commissions
Commission and distribution records with project-level policies, replacing hand-kept spreadsheets.
- 03
Permissions
Role-based access through Spatie Permission, checked on the server, including draft-contract states.
- 04
Real-time
Notifications over Laravel Reverb WebSockets, so the next person in a workflow sees the change.
- 05
Ad attribution
Leads and spend from Meta, Google and TikTok mapped to the project they were paid for, with retries on transient provider failures.
- 06
Arabic assistant
An OpenAI-backed assistant that answers the sales team’s questions in Arabic.
The hard parts
- 01
Concurrent reservations of the same unit, resolved with locks and a waiting list.
- 02
Attributing ad spend and leads to the right project when platforms return partial failures.
- 03
Draft-contract permissions that hold on the server, not only in the UI.
- 04
Keeping a shared codebase consistent across several engineers.
Real screens
The screens below come from a project with seeded demo data. The company’s records, URLs and source stay private.

Inside the product
Logged-in screens from a project running on the project's own demo seed. The names, units and amounts are fictional test data, not production figures.






What was verified
- Laravel API on MySQL with a separate Vue 3 and TypeScript SPA (read from the repository config).
- Row locking (lockForUpdate) in sixteen backend files, and a waiting-list flow for units.
- Meta, Google and TikTok ad integrations, and Reverb, Sanctum, Spatie Permission and OpenAI packages.
- My commits: about 350 of roughly 610, mostly ads attribution, architecture fixes, sales, contracts and integrations.
The repository has about 320 test files. They were not run for this page.
What I do not claim
- I did not build it alone: it is a team repository with several contributors.
- No company data, internal URLs or source code are shown or linked.
- No business results, usage or revenue figures are claimed.
Architecture
A Laravel 12 API on MySQL, with Redis for cache and queues, Sanctum for API authentication, Reverb for WebSockets and Spatie Permission for roles. The frontend is a separate Vue 3, TypeScript and Pinia SPA. The OpenAI API powers the assistant.
Stack
Laravel 12 · MySQL · Redis · Sanctum · Reverb · Spatie Permission · Vue 3 · TypeScript · OpenAI API
Source
Private repository

