Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 916 Bytes

README.md

File metadata and controls

30 lines (25 loc) · 916 Bytes

base-app-java

CI

Template for the simplest Http CRUD Java service

To test the app locally

Prerequisites:

  • Java 17
  • Docker

Commands:

  1. Ensure configs in /development/config.yml are relevant for local start up
  2. Run the PostgreSQL:
docker rm -f template-postgres;
docker run --name template-postgres -e POSTGRES_USER=ddl-template -e POSTGRES_PASSWORD=password -e POSTGRES_DB=template -p 5433:5432 postgres:15
  1. Build and run the app itself
./gradlew clean shadowJar
java -Dconfig.file="file:$(pwd)/development/config.yml" -jar template-app/build/libs/template-app.jar 

Once app started

Example query to test the app:

curl localhost:7000/healthcheck

Swagger docs - http://localhost:7000/swagger-ui/