You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/index.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,48 @@ slug: /core/
6
6
7
7
# Getting Started
8
8
9
+
## Prerequisites
10
+
11
+
- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup).
12
+
- .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install)
13
+
14
+
## Installation
15
+
16
+
### NPM
17
+
18
+
```shell
19
+
npm i --save-dev @nx-dotnet/core
20
+
npx nx g @nx-dotnet/core:init
21
+
```
22
+
23
+
### PNPM
24
+
25
+
```shell
26
+
pnpm i --save-dev @nx-dotnet/core
27
+
pnpx nx g @nx-dotnet/core:init
28
+
```
29
+
30
+
### Yarn
31
+
32
+
```shell
33
+
yarn add --dev @nx-dotnet/core
34
+
npx nx g @nx-dotnet/core:init
35
+
```
36
+
37
+
## Generate and run your first api!
38
+
39
+
Generate my-api, and my-api-test with C# and nunit tests.
40
+
41
+
```shell
42
+
npx nx g @nx-dotnet/core:app my-api --test-template nunit --language C#
This library was generated with [Nx](https://nx.dev).
3
+
- Have an existing nx workspace. For creating this, see [nrwl's documentation](https://nx.dev/latest/angular/getting-started/nx-setup).
4
+
- .NET SDK is installed, and `dotnet` is available on the path. For help on this, see [Microsoft's documentation](https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/install)
4
5
5
-
## Running unit tests
6
+
## Installation
6
7
7
-
Run `nx test nx-dotnet` to execute the unit tests via [Jest](https://jestjs.io).
8
+
### NPM
9
+
10
+
```shell
11
+
npm i --save-dev @nx-dotnet/core
12
+
npx nx g @nx-dotnet/core:init
13
+
```
14
+
15
+
### PNPM
16
+
17
+
```shell
18
+
pnpm i --save-dev @nx-dotnet/core
19
+
pnpx nx g @nx-dotnet/core:init
20
+
```
21
+
22
+
### Yarn
23
+
24
+
```shell
25
+
yarn add --dev @nx-dotnet/core
26
+
npx nx g @nx-dotnet/core:init
27
+
```
28
+
29
+
## Generate and run your first api!
30
+
31
+
Generate my-api, and my-api-test with C# and nunit tests.
32
+
33
+
```shell
34
+
npx nx g @nx-dotnet/core:app my-api --test-template nunit --language C#
0 commit comments