Skip to content

Angular 5 version of the Spring Petclinic sample application (frontend)

Notifications You must be signed in to change notification settings

diligentsoft/spring-petclinic-angular

 
 

Repository files navigation

Spring Petclinic Angular Build Status

####Angular 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.

Installation

  1. Update angular-cli to latest version (1.6.8 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-angular.git

Install local project package

npm install --save-dev @angular/cli@latest
if npm version > 5.0 delete package-lock.json file  ( bug in npm 5.0 - this file prevent correct packages install)
npm install

Now project use Angular CLI v.1.6.8 and Angular v.5.2.5 You can see current dependencies in package.json file.

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.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|module.

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.

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. Before running the tests make sure you are serving the app via ng serve.

Screenshot

spring-petclinic-angular2

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

Angular 5 version of the Spring Petclinic sample application (frontend)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 68.9%
  • HTML 21.1%
  • CSS 9.3%
  • JavaScript 0.7%