Paz1506 / pet-houses-jooq

Sandbox example app with JOOQ

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pet-houses-jooq

Sandbox example app with JOOQ

Before start application

Need to create database on your postgres server:

create database 'pet-jooq';

or ... do nothing, if you are use H2 in memory DB.

Compile and run

For Postgres

`mvn clean package -P pgdb`

cd ${buildDir}

java -jar -Dspring.profiles.active=pgdb *buildedArtifactName*.jar

H2

`mvn clean package -P h2db`

cd ${buildDir}

java -jar -Dspring.profiles.active=h2db *buildedArtifactName*.jar

Check it ...

For example: Get request: `http://localhost:8855/houses/projections/00000000-0000-0000-0000-000000000010` or: `curl -X GET http://localhost:8855/houses/projections/00000000-0000-0000-0000-000000000010 | json_pp`

About

Sandbox example app with JOOQ


Languages

Language:Java 96.5%Language:TSQL 3.5%