You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Henning Brinkmann 9a49aab12d chore: Disable tests in build.sh. 4 weeks ago
.mvn/wrapper chore: add doc, src, pom.xml, etc 2 months ago
doc chore: replace POST by GET for /admin/user 1 month ago
keycloak chore: set version of keycloak 1 month ago
ldap chore: build custom docker image for ldap 1 month ago
nginx chore: add resolver to location / in nginx.conf 1 month ago
src chore: add unique constraint to user.name 1 month ago
.dockerignore chore: add .dockerignore 2 months ago
.gitignore chore: ignore *.pem 1 month ago
.sdkmanrc chore: add .sdkmanrc with config for Java and Maven 2 months ago
README.md chore: updated README.md 1 month ago
build.sh chore: Disable tests in build.sh. 4 weeks ago
create_certs.sh chore: dump hydra in favor of keycloak 1 month ago
docker-compose.yaml chore: reactivate backend-demo in docker-compose.yaml 1 month ago
mvnw chore: add doc, src, pom.xml, etc 2 months ago
mvnw.cmd chore: add doc, src, pom.xml, etc 2 months ago
pom.xml chore: add hamcrest to pom.xml 1 month ago
tmp.json intermediate 1 month ago
update_access_token.sh chore: add baseurl to update_access_token.sh 1 month ago

README.md

Backend Demo

Prerequisites

  • JDK 11
  • Maven 3.6.3

Installation of Prerequisites with sdkman

Get sdkman and follow its installation instructions.

Install missing SDKs:

$ source .sdkmanrc
$ sdk install java
$ sdk install maven

Activate SDKs:

$ sdk env

Build

Simply run the build script:

$ ./build.sh

It will clean the project, package it, and create a Docker image backend-demo.

Running

Start Database and Backend

Start the database and backend using docker-compose:

$ docker-compose up -d

The database will be available here:

URLlocalhost:5432
userpostgres
passwordpostgres

The rest backend will be available at localhost:8080

Development Mode

For easier development you can run in development mode. First stop the docker container running the backend:

$ docker-compose stop backend-demo

Then start in development mode:

$ mvn quarkus:dev

Further Documentation

Some sample queries to the backend API can be found in doc/doc.http

When running in development mode the OpenAPI UI can be reached at

http://localhost:8080/swagger-ui/