Alnair: Evolution and Migration of a B2B SaaS Platform (PropTech)
| Metric | Value |
|---|---|
| Lines of Code (TS) | 315,000+ (my area of responsibility) |
| Database Objects | 830,000+ |
| Active Projects | 2,700+ |
| Period | 2023 — 2026 |
A professional platform for real estate agents and agencies in the UAE. A long-running project that has evolved from a classic SPA to a high-load SSR system.
TL;DR
Development and deep refactoring of a large-scale system (520k+ lines of code). Successful migration from SPA to SSR under conditions of massive accumulated technical debt and strict business requirements.
Development History and Key Challenges
🕒 2020 - 2023: Legacy and Start
The project began in 2020 as an SPA application. I joined midway through the stage, after which development was paused due to internal management reasons. In 2023, we resumed work, facing the need to update the outdated design and the lack of basic features for the international market (i18n, currencies, units of measurement).
📈 2023 - 2025: SPA Period and Growth
Over two years, the project developed as an SPA, intensively accumulating functionality (Collections, Dashboard, White Label, secondary market tools, booking, agency account, subscriptions, various listings for displaying apartments, maps with property layouts). During this time, the system underwent two full redesigns. A huge volume of business logic (Effector/MobX) was layered onto an architecture that was initially not designed for the B2C segment.
⚡ 2025: Strategic Migration to SSR
When the need for SEO and B2C presence arose, the decision was made to switch to SSR.
- Challenge: The codebase was poorly suited for server-side rendering.
- Solution: In 4 months, I implemented the project migration to React Router 7 (BFF approach).
- Result: Another month was required for stabilization, solving specific SEO issues, and catching bugs from the transition. The project became hybrid, retaining powerful B2B logic while gaining the advantages of SSR.
Key Competencies in the Project
- Technical Debt Management: Maintenance and refactoring of a gigantic codebase (315,000+ lines of TS), solving “transition ailments” after migration.
- Scalable Architecture: Implementation of multilingualism and multi-currency in an already operational system.
- Complex UI/UX: Interactive maps (Leaflet), apartment chessboards, mortgage calculators, and real-time notification systems.
- Integrations: Implementation of authorization via Telegram/WhatsApp and development of internal tools for agents (selection system).