-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
26 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,32 @@ | ||
# instancio-petclinic-jpa-sample | ||
|
||
```bash | ||
This project is an example to generate a fake data based on instancio in Spring boot application with JPA. | ||
|
||
The application example used is the popular Spring pet clinic [spring pet clinic](https://github.com/spring-projects/spring-petclinic) | ||
|
||
/mvnw package | ||
## Generated data | ||
|
||
### Steps for demo | ||
1. checkout spring pet clinic application from fork repos | ||
```bash | ||
git clone https://github.com/anasoid/spring-petclinic.git | ||
``` | ||
|
||
2. Install spring petclinic in local maven repo | ||
```bash | ||
cd spring-petclinic | ||
./mvnw package | ||
./mvnw install:install-file -Dfile=./target/spring-petclinic-3.4.0-SNAPSHOT.jar.original -DgroupId=org.springframework.samples -DartifactId=spring-petclinic -Dversion=3.4.0-SNAPSHOT -Dpackaging=jar | ||
``` | ||
|
||
3. Checkout this repo in different folder | ||
```bash | ||
git clone https://github.com/anasoid/instancio-petclinic-jpa-example.git | ||
``` | ||
|
||
4. Run sring boot petclinic app | ||
```bash | ||
./gradlew bootRun | ||
``` | ||
|
||
./mvnw spring-boot:run | ||
``` | ||
5. Visit url http://localhost:8080 |