/spring-petclinic-angular

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

Primary LanguageTypeScript

Spring Petclinic Angular

Angular frontend for Spring Petclinic

Infotiv's project for IT-Högskolan's test automation course 2021

alt petclinic-junit alt petclinic-junit

Warning: client only. Use REST API from backend spring-petclinic-rest project You need start backend server before start frontend application.

Running the web server

First, clone this repository. You will know have two repositories, spring and angular. After entering into the static-content directory (by running cd spring-petclinic-angular/static-content), run one of the following commands to run a simple web server on port 4200:

# Method 1 : using java
curl https://jcenter.bintray.com/com/athaydes/rawhttp/rawhttp-cli/1.0/rawhttp-cli-1.0-all.jar -o rawhttp.jar
java -jar ./rawhttp.jar serve . -p 4200

# Method 2 : using python3
python -m http.server 4200

# Method 3 : using python2
python -m SimpleHTTPServer 4200

# Method 4 : using ruby
ruby -run -ehttpd . -p4200

# Method 5 : using npm
npm install -g http-server
http-server -p 4200

Then go to http://localhost:4200/

Screenshot

Screenshot of Spring Petclinic Angular

Credits

All credit goes to Spring Project. Adjustments for the test automation course in 2021 is done by Hamid Ebadi.