liveBook · Manning

Single repository structure

A single-repository structure, or monorepo, is an arrangement in which multiple related software projects or components are maintained in one version-controlled repository.

How 2 Manning books explain it

Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform

A repository organization pattern in which all infrastructure configurations and modules are stored together in one code repository.

How it is used
Organizes shared infrastructure configurations and reusable modules so teams can compose, reproduce, compare, and inspect them in one place.
How deep it goes
Defines the layout, demonstrates local imports, and explains trade-offs, but defers detailed build-system implementation and governance mechanics.
Examples
Uses team-based development and production directories, local Python imports, and composed server, network, and database factory modules.
What you can do after
Operate/configure a monorepo layout, reference local modules, compare environments, and recognize when scaling requires repository decomposition.

Read how Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform explains single repository structure →

Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform

A monorepo is a single source-code repository that contains multiple services, applications, or related projects managed together.

How it is used
Organizes a small microservices application in one repository while allowing each service its own directory and deployment workflow.
How deep it goes
Defines the layout, shows a directory-scoped CD workflow, and outlines a later split; defers history-preservation details to Git documentation.
Examples
Shows service subdirectories, a GitHub Actions workflow filtered to `gateway/**`, and a proposed split into service and infrastructure repositories.
What you can do after
Operate/configure a monorepo with per-service CD workflows, and evaluate when to move services into separate repositories.

Read how Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform explains single repository structure →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.