0.1.0 • Published 4 years ago

@order-manager/client v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
4 years ago

OrderManager

Setup development environment

  1. Download and install npm
  2. Install yarn
    npm install -g yarn
  3. Install angular cli
    yarn global add @angular/cli
    To check if angular is installed execute ng --version
    If ng is nor found add the global yarn folder to the path.
  4. 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.