Skip to content

RHODA-lab/postgresql-orm-demo-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quarkus (Hibernate ORM and RESTEasy) demo app for PostgreSQL compatible databases

Requirements

To compile and run this demo app you will need:

  • JDK 11+
  • GraalVM

Running the demo App in Openshift with Service Binding

Modify the src/main/resources/application.properties for your docker image url, and then perform the following:

$ ./mvnw clean package -DskipTests -Dquarkus.container-image.push=true

$ oc apply -f src/deploy-app.yaml

Follow the documentation in RHODA/DBaaS to setup

PostgreSQL/CockroachDB provider account and connection. After that, you can use SBO to bind the connection to this demo app.

Building the demo

Modify the src/main/resources/application.properties for your database server, and then perform the following:

$ ./mvnw package

Make sure there is a PostgreSQL instance running (Quarkus automatically starts one for dev and test mode).

# To set up a PostgreSQL database with Docker:
$ docker run --rm=true --name quarkus_test -e POSTGRES_USER=quarkus_test -e POSTGRES_PASSWORD=quarkus_test -e POSTGRES_DB=quarkus_test -p 5432:5432 postgres:13.3

Running the demo

$ ./mvnw quarkus:dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 57.7%
  • HTML 42.3%