This is the template for the frontend using angular2 and angular-cli
npm intall before you can do anything. So you can install all dependencies.
If you need to update Run
npm update --save so you can update any packages, npm will do the best effort.
ng generate component component-name to generate a new component. You can also use
ng generate directive/pipe/service/class/module.
or ng g my-component-name
ng build to execute the default configuration within the project.
ng build --watch. For automatic rebuild when changes are detected.
ng build --prod. If you need to run the build in production mode.
You can attach static files in the assets folder but we strongly recommend not to do this, always try to add new dependency.
npm start for a dev server. Navigate to
Running all tests (unit and e2e)
npm test to execute all the tests
Running unit tests
npm test to execute the unit tests via Karma.
Running end-to-end tests
npm run e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via
To get more help on the Angular CLI use
More info for angular Cli via AngulaCLI