qtopie / spring-petclinic-mybatis

MyBatis intergrated with spring petclinic sample. https://github.com/spring-projects/spring-petclinic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spring-petclinic-mybatis

Build Status

Sonarcloud Status SonarCloud Coverage SonarCloud Bugs SonarCloud Vulnerabilities

中文

This backend version of the Spring Petclinic application only provides a REST API. There is no UI.

The spring-petclinic-angular project is a Angular front-end application witch consumes the REST API.

Understanding the Spring Petclinic application with a few diagrams

See the presentation here

Sample Feature Lists

Compared to original version

  • Java Project based on gradle
  • MyBatis Integration
  • Springfox - Swagger UI Docs
  • Spring Rest Docs Integration
  • Drone CI automation
  • SonarCloud Integration and code analysis

Running petclinic locally

git clone https://github.com/artificerpi/spring-petclinic-mybatis.git
cd spring-petclinic-mybatis
docker-compose up -d
gradle bootRun

You can then access petclinic here: http://localhost:9966/petclinic/

Integrate it with spring-petclinic-angular

npm uninstall -g angular-cli @angular/cli
npm cache clean
npm install -g @angular/cli@latest

git clone https://github.com/spring-petclinic/spring-petclinic-angular.git

cd spring-petclinic-angular
npm install
ng serve

Screenshot of the Angular 5 client

Tested: it's working with Anuglar 8 as well

spring-petclinic-angular2

Disclaimer

This project is a fork of spring-petclinic-rest, but the persisstent has been replaced with MyBatis. There are lots of modifications on original codes.

About

MyBatis intergrated with spring petclinic sample. https://github.com/spring-projects/spring-petclinic


Languages

Language:Java 100.0%