Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.31 KB

overview.md

File metadata and controls

47 lines (31 loc) · 1.31 KB

Express is a mature, minimal, and an open source web framework for making web applications and apis.

Create a New Workspace

To create a new workspace with a pre-created Express app, run the following command:

 npx create-nx-workspace --preset=express

Setting Up @nx/express

Installation

{% callout type="note" title="Keep Nx Package Versions In Sync" %} Make sure to install the @nx/express version that matches the version of nx in your repository. If the version numbers get out of sync, you can encounter some difficult to debug errors. You can fix Nx version mismatches with this recipe. {% /callout %}

In any Nx workspace, you can install @nx/express by running the following command:

{% tabs %} {% tab label="Nx 18+" %}

nx add @nx/express

This will install the correct version of @nx/express.

{% /tab %} {% tab label="Nx < 18" %}

Install the @nx/express package with your package manager.

npm add -D @nx/express

{% /tab %} {% /tabs %}

Recipes