|
2 | 2 |
|
3 | 3 | This project was generated using [Nx](https://nx.dev).
|
4 | 4 |
|
5 |
| -<p align="center"><img src="https://raw.githubusercontent.com/nrwl/nx/master/nx-logo.png" width="450"></p> |
| 5 | +## Quick Start |
6 | 6 |
|
7 |
| -🔎 **Nx is a set of Angular CLI power-ups for modern development.** |
8 |
| - |
9 |
| -## Quick Start & Documentation |
10 |
| - |
11 |
| -[Nx Documentation](https://nx.dev) |
12 |
| - |
13 |
| -[30-minute video showing all Nx features](https://nx.dev/getting-started/what-is-nx) |
14 |
| - |
15 |
| -[Interactive Tutorial](https://nx.dev/tutorial/01-create-application) |
16 |
| - |
17 |
| -## Adding capabilities to your workspace |
18 |
| - |
19 |
| -Nx supports many plugins which add capabilities for developing different types of applications and different tools. |
20 |
| - |
21 |
| -These capabilities include generating applications, libraries, .etc as well as the devtools to test, and build projects as well. |
22 |
| - |
23 |
| -Below are some plugins which you can add to your workspace: |
24 |
| - |
25 |
| -- [Angular](https://angular.io) |
26 |
| - - `ng add @nrwl/angular` |
27 |
| -- [React](https://reactjs.org) |
28 |
| - - `ng add @nrwl/react` |
29 |
| -- Web (no framework frontends) |
30 |
| - - `ng add @nrwl/web` |
31 |
| -- [Nest](https://nestjs.com) |
32 |
| - - `ng add @nrwl/nest` |
33 |
| -- [Express](https://expressjs.com) |
34 |
| - - `ng add @nrwl/express` |
35 |
| -- [Node](https://nodejs.org) |
36 |
| - - `ng add @nrwl/node` |
37 |
| - |
38 |
| -## Generate an application |
39 |
| - |
40 |
| -Run `ng g @nrwl/angular:app my-app` to generate an application. |
41 |
| - |
42 |
| -> You can use any of the plugins above to generate applications as well. |
43 |
| -
|
44 |
| -When using Nx, you can create multiple applications and libraries in the same workspace. |
45 |
| - |
46 |
| -## Generate a library |
47 |
| - |
48 |
| -Run `ng g @nrwl/angular:lib my-lib` to generate a library. |
49 |
| - |
50 |
| -> You can also use any of the plugins above to generate libraries as well. |
51 |
| -
|
52 |
| -Libraries are sharable across libraries and applications. They can be imported from `@todosws/mylib`. |
53 |
| - |
54 |
| -## Development server |
55 |
| - |
56 |
| -Run `ng serve my-app` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files. |
57 |
| - |
58 |
| -## Code scaffolding |
59 |
| - |
60 |
| -Run `ng g component my-component --project=my-app` to generate a new component. |
61 |
| - |
62 |
| -## Build |
63 |
| - |
64 |
| -Run `ng build my-app` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build. |
65 |
| - |
66 |
| -## Running unit tests |
67 |
| - |
68 |
| -Run `ng test my-app` to execute the unit tests via [Jest](https://jestjs.io). |
69 |
| - |
70 |
| -Run `npm run affected:test` to execute the unit tests affected by a change. |
71 |
| - |
72 |
| -## Running end-to-end tests |
73 |
| - |
74 |
| -Run `ng e2e my-app` to execute the end-to-end tests via [Cypress](https://www.cypress.io). |
75 |
| - |
76 |
| -Run `npm run affected:e2e` to execute the end-to-end tests affected by a change. |
| 7 | +- `ng serve api` to run the Nest Server |
| 8 | +- `ng serve todosws` to run the Angular App |
77 | 9 |
|
78 | 10 | ## Understand your workspace
|
79 | 11 |
|
|
0 commit comments