Updates the docs structure, navigation etc to be easier + better suited for showing Nx technology support beyond just TS. **Notes:** - API (`/nx-api`) tab is removed from the navigation (i.e. menu bar), but pages still remain for now until we update references in `*.md` files. - Redirects are set up `/nx-api` to go to their respect new location e.g. `/technologies` or `/reference/core-api` - Old URLs still exist in the sitemap for now, but majority of them will be redirected -- a follow-up PR can remove them. **Preview:** https://nx-dev-git-nx-dev-polyglot-docs-restructure-nrwl.vercel.app/docs --------- Co-authored-by: Jack Hsu <jack.hsu@gmail.com>
38 lines
1.3 KiB
Markdown
38 lines
1.3 KiB
Markdown
---
|
|
title: Express Plugin for Nx
|
|
description: Learn how to use the @nx/express plugin to create and manage Express applications in your Nx workspace, including setup and common recipes.
|
|
---
|
|
|
|
[Express](https://expressjs.com/) 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:
|
|
|
|
```shell
|
|
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](/recipes/tips-n-tricks/keep-nx-versions-in-sync).
|
|
{% /callout %}
|
|
|
|
In any Nx workspace, you can install `@nx/express` by running the following command:
|
|
|
|
```shell {% skipRescope=true %}
|
|
nx add @nx/express
|
|
```
|
|
|
|
This will install the correct version of `@nx/express`.
|
|
|
|
## Recipes
|
|
|
|
- [Add an Express Application to Your Workspace](/showcase/example-repos/add-express)
|
|
- [Set Up Application Proxies](/technologies/node/recipes/application-proxies)
|
|
- [Wait For Tasks To Finish](/technologies/node/recipes/wait-for-tasks)
|