You started creating a frontend application for your company, then another, and another and eventually you end up with a dozen frontend applications with a ton of replicated code. Tooling code, linting, tests, helper libraries and domain specific code.
You probably seen this happen before. Is not effective and is prone to errors. The solution, co-locate all code and dependencies on a single repository, in other words create a monorepo.
I will not try to explain what a monorepo is or why do you need one. As usual on all my post I just to help you build one for your NextJS applications. You probably already decided a monorepo is the solution for you.
There are certain minimal requirements any frontend monorepo should support. The ones I care the most are:
/packages/app/*
and /packages/shared/*
each./customer-dashboard/...
represents an Customer dashboard app and /back-office/...
is the administrative Application internal employees use)You can have other requirements in addition to this. After this post you can dedicate more time to them.
#monorepo #typescript #react #next #web-development