Skip to content

ChmilevFA/base-app-java

Repository files navigation

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/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published