Skip to content

Commit

Permalink
init doc
Browse files Browse the repository at this point in the history
  • Loading branch information
anasoid committed Jan 8, 2025
1 parent 0d9109d commit 2673102
Showing 1 changed file with 26 additions and 4 deletions.
30 changes: 26 additions & 4 deletions README.md
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

0 comments on commit 2673102

Please sign in to comment.