38 lines
1.1 KiB
Markdown
38 lines
1.1 KiB
Markdown
## Getting Started
|
||
|
||
### Creating an Nx Workspace
|
||
|
||
**Using `npx`**
|
||
|
||
```bash
|
||
npx create-nx-workspace
|
||
```
|
||
|
||
**Using `npm init`**
|
||
|
||
```bash
|
||
npm init nx-workspace
|
||
```
|
||
|
||
**Using `yarn create`**
|
||
|
||
```bash
|
||
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]
|
||
web components [a workspace with a single app built using web components]
|
||
angular [a workspace with a single Angular application]
|
||
angular-nest [a workspace with a full stack application (Angular + Nest)]
|
||
react [a workspace with a single React application]
|
||
react-express [a workspace with a full stack application (React + Express)]
|
||
next.js [a workspace with a single Next.js application]
|
||
```
|
||
|
||
Select the preset that works best for you.
|