Skip to content

Latest commit

 

History

History

hibernate-reactive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hibernate Reactive Example

This module is a simple reactive application using Quarkus and Hibernate Reactive.

Dev

You can run this application in dev mode using:

> mvn quarkus:dev

The application is exposed on http://localhost:8080/customer.

Build

Build it the application package using:

> mvn clean package

The output is located in target/quarkus-app

Run

Once packaged, you can run the application with:

> java -jar target/quarkus-app/quarkus-run.jar

In production mode, you need to start a PostgreSQL instance in Docker. You can create one using:

docker run --ulimit memlock=-1:-1 -it --rm=true --memory-swappiness=0 --name quarkus_test -e POSTGRES_USER=quarkus_test -e POSTGRES_PASSWORD=quarkus_test -e POSTGRES_DB=quarkus_test -p 5432:5432 postgres:13.2