Organization of Applications & Projects within Monorepo

It is important to understand that we use a monorepo and all applications/projects will run on the same shared website.

  • Shared code between applications and projects is located in the /packages directory

  • /apps/app is the "root" application

  • /apps also contains individual projects which are consumed by the root application, similar to an imported library

  • Each project contains a "pages" directory

    • a "page" contains minimal code

    • logic and complex implementations are done in "components"

  • Each project contains a "components" directory with 2 sub directories

    • "Common" for shared components within the project

      • E.g. a button that is used on multiple pages

    • "Modules" for specific components which are not reused throughout the project

Last updated

Was this helpful?