Skip to content

Commit

Permalink
feat: use datasets with liquibase (demo and test purposes)
Browse files Browse the repository at this point in the history
- use h2 for test
- use postgresql for demo
- rename config files
  • Loading branch information
davdarras committed Jun 25, 2024
1 parent 6ba3c8f commit c05c2d1
Show file tree
Hide file tree
Showing 21 changed files with 636 additions and 825 deletions.
15 changes: 2 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ REST API for communication between Pearl Jam DB and Pearl Jam UI.

## Requirements
For building and running the application you need:
- [JDK 11](https://jdk.java.net/archive/)
- [JDK 21](https://jdk.java.net/archive/)
- Maven 3
- Docker for tests

Expand All @@ -22,17 +22,7 @@ mvn spring-boot:run
```

## Application Accesses locally
To access to swagger-ui, use this url : [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html)

## Keycloak Configuration
1. To start the server on port 8180 execute in the bin folder of your keycloak :
```shell
standalone.bat -Djboss.socket.binding.port-offset=100 (on Windows)

standalone.sh -Djboss.socket.binding.port-offset=100 (on Unix-based systems)
```
2. Go to the console administration and create role investigator and a user with this role.

To access to swagger-ui, use this url : [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html)

## Deploy application on Tomcat server
### 1. Package the application
Expand Down Expand Up @@ -62,7 +52,6 @@ fr.insee.pearljam.logging.level=DEBUG
#Application configuration
fr.insee.pearljam.application.mode=keycloak
fr.insee.pearljam.application.crosOrigin=*
fr.insee.pearljam.application.guestOU=OU-POLE

#Database configuration
fr.insee.pearljam.persistence.database.host = pearljam-db
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
<scope>test</scope>
</dependency>

<!-- Tests -->
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit c05c2d1

Please sign in to comment.