npm install -g @angular/cli
npm install ng serve
Run ng serve
and navigate to http://localhost:4200/
.
Run ng build
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
Karma.
Run ng generate component component-name
to generate a new component. You can
also use ng generate directive|pipe|service|class|module
.
Run ng e2e
to execute the end-to-end tests via
Protractor. Before running the tests make sure
you are serving the app via ng serve
.