nx/scripts/readme-fragments/getting-started.md
2021-08-09 10:58:26 -04:00

1.2 KiB
Raw Blame History

Getting Started

Creating an Nx Workspace

Using npx

npx create-nx-workspace

Using npm init

npm init nx-workspace

Using yarn create

yarn create nx-workspace

The create-nx-workspace command will ask you to select a preset, which will configure some plugins and create your applications to help you get started.

? What to create in the new workspace (Use arrow keys)
 empty             [an empty workspace with a layout that works best for building apps]
  oss               [an empty workspace with a layout that works best for open-source projects]
  react             [a workspace with a single React application]
  next.js           [a workspace with a single Next.js application]
  angular           [a workspace with a single Angular application]
  express           [a workspace with a single Express application]
  nest              [a workspace with a single Nest application]
  react-express     [a workspace with a full stack application (React + Express)]
  angular-nest      [a workspace with a full stack application (Angular + Nest)]
  web components    [a workspace with a single app built using web components]

Select the preset that works best for you.