monorepo
A single version-control repository that holds several related projects, such as a web app, an API and their shared libraries.
In more detail
Keeping the frontend, backend and shared packages together means one change can update a schema and every consumer of it at the same time, so they cannot drift apart. The cost is that builds must be smart about only rebuilding what changed, which is what tools like Turborepo provide.
Example
apps/web, apps/api and packages/schemas living in one Git repositoryRelated terms
- package workspace — A package-manager feature that treats several folders in one repository as separate packages and links them to each other locally.
- Turborepo — A build tool for JavaScript monorepos that runs package tasks in dependency order, in parallel, and skips work whose inputs have not changed.
- repository — A project folder whose full history is tracked by version control; in Git, your files plus the hidden .git directory that stores every commit.
- task graph — A map of which build tasks depend on which others, used to decide what must run first and what can run at the same time.
Taught in
- CodePipeline: Stages, Actions And The Key Nobody Shared — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- Large Files, Scale, Permissions And Tags — Microsoft Azure DevOps Engineer Expert (AZ-400) Exam Prep
- Someone Cleaned Up The History: Versioned And Immutable — Certified GitOps Associate (CGOA) Exam Prep
- Three Regions By Spring: GitOps Architecture — Certified GitOps Associate (CGOA) Exam Prep
- Patterns Sprint: Eight Needs, One Pattern Each — Certified GitOps Associate (CGOA) Exam Prep
- Monorepo Architecture: Workspaces & Turborepo — Production Full-Stack Engineering
- End-to-End Type Safety: Shared Schemas & DTOs — Production Full-Stack Engineering
- Unified Build Pipelines: Caching & Dependency Graphs — Production Full-Stack Engineering
- Type-Safe Client Generation: Orval & Automated SDKs — Production Full-Stack Engineering
- Type-Safe RPC Architectures: tRPC & Procedures — Production Full-Stack Engineering
- Parent, Child And Multi-Project Pipelines — GitLab Certified CI/CD Associate Exam Prep