Web Development
Monorepo Architecture: How We Ship Admin Portals, Websites & Mobile Apps from One Codebase
Every growing business faces the same software problem sooner or later. What starts as one web application slowly becomes a family of products: an admin panel for the operations team, a customer-facing website, a mobile app, a partner dashboard. Before long, your developers are maintaining four or five separate codebases — each with its own copy of the login flow, its own button styles, and its own version of the same bug.
This is one of the most expensive hidden costs in software development. Every fix has to be repeated in every project. Every design update takes weeks to reach all products. Every new developer must learn several different codebases before becoming productive.
A monorepo architecture solves this problem at the root. In this article, we explain what a monorepo is, show how our team at Annz Technologies uses one to run five applications (and counting) for a large enterprise platform, and share the benefits and best practices that matter most to business and technology leaders.
What Is a Monorepo — and Why Should You Care?
A monorepo (short for "mono repository") is a single codebase that holds several applications and shared building blocks together, instead of splitting every project into its own separate repository (a polyrepo).
The difference sounds small, but the impact on cost and speed is significant.
Google, Meta and Microsoft famously run monorepos at enormous scale. But the model is not just for tech giants. It is most valuable for product suites — platforms where an admin panel, a public website and mobile apps must stay perfectly in sync. That describes most enterprise systems today.
A Real-World Example: One Platform, Five Applications and Counting
One of our flagship projects at Annz Technologies is a complete enterprise service platform. From a single repository, our team builds and releases:
An admin portal — the operational back office covering nearly thirty business areas: locations, staff, customers, bookings, payments, reporting and more.
A customer portal — the customer-facing web experience, including live video sessions and multilingual support.
A partner portal — a focused dashboard for vendors and service partners.
Two native mobile apps — a customer app and a staff app built with React Native, sharing the same business logic as the web portals.
Five applications and counting — one codebase, one team at full speed. A sixth product would simply plug into the same building blocks. The repository is organised into three areas: an apps folder holding the five applications, a packages folder holding shared code (the API layer, design systems and business logic), and a clients folder holding brand themes and settings for white-label versions.
We connect everything with Yarn workspaces, a lightweight and proven tool. Each application simply imports the shared packages directly — no copying, no re-publishing. When a shared component improves, every application improves at the same moment.
Best Practices: What Makes a Monorepo Actually Work
Putting all your code in one place is easy. Keeping it clean and scalable requires discipline. Three practices make the difference.
1. Share the business logic, not just the visuals
Everything that talks to our backend lives in one shared package: the API client, around fifty service modules, data-fetching hooks, authentication with automatic token refresh, and translations. This layer is platform-independent — the same booking logic powers both the customer web portal and the customer mobile app. When the backend changes, we update one file and every application follows. Business logic is where the bugs live, and we only ever write it once.
2. Build one design system for every product
Our shared UI kit follows the atomic design method: small building blocks (buttons, inputs) combine into larger ones (search bars, tables), which combine into complete page layouts. A parallel kit does the same for mobile. The result: a card or a table looks and behaves identically in the admin portal, the partner portal and the customer app — not because designers keep checking, but because it is literally the same component.
3. Enforce the rules automatically
Coding standards that live only in documents are forgotten within months. Ours are enforced by tooling on every single commit: automated checks block hardcoded colours, incorrect file naming, and imports that break the architecture's boundaries. A developer simply cannot merge code that violates the structure. That is how a monorepo stays clean in year three, not just in month three.
Common Pitfalls to Avoid
A monorepo only delivers these results when it is set up thoughtfully. Three mistakes cause most failed attempts:
No clear boundaries. If any application can reach into any other application's internal code, you end up with a tangled monolith instead of a modular platform. Define shared packages with clear public interfaces, and block every other kind of cross-import.
Relying on manual discipline. Teams that depend on code-review vigilance alone watch their standards decay within months. Every rule you genuinely care about should be checked by a machine, automatically, on every change.
Over-engineering on day one. You rarely need heavy build-orchestration tooling at the start. Begin with simple workspaces, prove the structure works, and add advanced tooling only when scale demands it.
The Business Benefits You Can Measure
Architecture can feel abstract, so here is what it means in outcomes our clients actually see:
Faster delivery. A new feature's data layer and UI components are written once and reused across every portal. What used to be three separate implementations is now one.
Consistency customers can feel. Customers, partners and administrators all experience the same polished design — which builds trust in your product.
Lower maintenance cost. One security patch, one upgrade, one bug fix — applied everywhere in a single change.
Easier team scaling. A developer who knows one portal is productive on the others the same day, because the structure and rules are identical.
Ready-made expansion. Because every colour and label flows through configurable themes, the same platform can ship as a white-label product for multiple brands — including light/dark modes and right-to-left language support — with configuration, not a rebuild.
When Is a Monorepo the Right Choice?
A monorepo is not a silver bullet. If you run several completely unrelated products with separate teams and technologies, independent repositories may serve you better.
But if your roadmap includes any of the following, the monorepo model deserves serious consideration:
A customer app plus an admin or operations dashboard
Web and mobile versions of the same product
Multiple brands or regional variants of one platform
A design system you want enforced, not merely suggested
A team that keeps re-fixing the same bug in different places
These are exactly the situations where shared code and a single source of truth pay for themselves many times over.
Frequently Asked Questions
Is a monorepo the same as a monolith?
No. A monolith is one application deployed as a single unit. A monorepo is one repository containing many independently deployable applications — our flagship platform ships five, with room for more.
Can web and mobile apps really share code?
Yes. Screens and visual components differ per platform, but API services, data handling, authentication and business rules can be written once and reused by both.
Will one large repository slow my team down?
Not with modern tooling. Fast build tools and clear package boundaries keep day-to-day work quick. How the code is organised matters far more than repository size.
Conclusion: Build Once, Benefit Everywhere
A well-run monorepo turns a family of disconnected projects into one coherent platform: faster to build, cheaper to maintain, and consistent everywhere your customers meet it. The keys are a shared business-logic layer, a single design system, and rules enforced by automation rather than memory.
At Annz Technologies, this architecture is one of the ways we ensure the software we deliver is not just impressive on launch day, but affordable to evolve for years afterwards. With over 15 years of experience and 150+ clients worldwide, our teams design web applications, mobile apps and bespoke enterprise platforms that scale with your ambitions.
Planning a product suite — an admin panel, a customer app, a partner portal? Let's architect it right from day one. Contact Annz Technologies and turn your next big idea into a platform built to grow.
Business logic is where the bugs live — and we only ever write it once.

