This project was generated using Nx.
🔎 Nx is a set of Angular CLI power-ups for modern development.
npm install
The project will run at the port 3333:
ng serve api
ng serve todos
30-minute video showing all Nx features
Run ng g app myapp
to generate an application. When using Nx, you can create multiple applications and libraries in the same CLI workspace.
Run ng serve myapp
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name --project=myapp
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build myapp
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Jest.
Watch mode: ng test <project> --watch
Code coverage: npm test <project> --code-coverage
Isolate tests which are affected by uncommitted files ng test libname --onlyChanged
Re-record failing snapshots during this test run ng test libname --updateSnapshots
Run ng e2e
to execute the end-to-end tests via Cypress.
Test all projects in parallel.
Rebuild the app:
npm run affected:build -- --base=master
Run the tests:
npm run affected -- --target=build --base=master
npm run dep-graph
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.