Spring Petclinic Angular2
####Angular2 frontend for Spring Petclinic.
Warning: client only. Use REST API from backend spring-petclinic-rest project You need start backend server before start frontend application.
- Update angular-cli to latest version (1.0 current) as described on angular-cli github readme.md
npm uninstall -g angular-cli @angular/cli npm cache clean npm install -g @angular/cli@latest
Clone project from github
git clone https://github.com/spring-petclinic/spring-petclinic-angular2.git
Install local project package
npm install --save-dev @angular/cli@latest npm install
ng serve for a dev server. Navigate to
http://localhost:4200/. The app will automatically reload if you change any of the source files.
ng generate component component-name to generate a new component. You can also use
ng generate directive/pipe/service/class/module.
ng build to build the project. The build artifacts will be stored in the
dist/ directory. Use the
-prod flag for a production build.
Running unit tests
ng test to execute the unit tests via Karma.
Running end-to-end tests
ng 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
ng help or go check out the Angular CLI README.