Express is a mature, minimal, and an open source web framework for making web applications and apis. Nx scales your Express monorepo, so you can grow your APIs and shared libraries without losing fast, reliable builds.
Requirements
Section titled “Requirements”The @nx/express plugin supports the following package versions.
| Package | Supported Versions |
|---|---|
express | ^4.0.0 || ^5.0.0 |
Nx generators install the latest supported versions automatically when scaffolding new projects.
Create a new workspace
Section titled “Create a new workspace”Start from the Express template to scaffold a ready-to-run Express API:
npx create-nx-workspace@latest my-workspace --template nrwl/express-api-templateSetting up @nx/express
Section titled “Setting up @nx/express”Installation
Section titled “Installation”In any Nx workspace, you can install @nx/express by running the following command:
nx add @nx/expressThis will install the correct version of @nx/express.
Guides
Section titled “Guides”Set up CI for your Express monorepo
Section titled “Set up CI for your Express monorepo”In CI, Nx runs nx affected to rebuild and retest only the projects a change touches, and caches results to skip repeated work.
For a complete pipeline, see Set up CI.