@order-manager/client v0.1.0
OrderManager
Setup development environment
- Download and install npm
- Install yarn
npm install -g yarn
- Install angular cli
yarn global add @angular/cli
To check if angular is installed executeng --version
If ng is nor found add the global yarn folder to the path. - Change the package manager for angular from npm to yarn
ng config -g cli.packageManager yarn
As a development IDE Visual Studio Code or Jetbrains WebStorm is recommended.
Start Development server
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Generating components/services/...
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
It is also possible to use the shortcut ng g ...
Build
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.
Codestyle
To check the codestyle run ng lint
Running unit tests
Run ng test
to execute the unit tests via Karma.
Running end-to-end tests
Run ng e2e
to execute the end-to-end tests via Protractor.
Further help
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.
4 years ago