Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.68 KB

README.md

File metadata and controls

47 lines (31 loc) · 1.68 KB

Tomcat-Embedded-OpenApi

Requirements

Software:

Configure JDK VSCode:

Change /.vscode/launch.json for your Java Home

Configure JDK Gradle:

Change gradle.properties for your Java Home

Environment variables:

  • DB_URL=localhost:5432/postgres
  • DB_USER=postgres
  • DB_PASS=mysecretpassword

Start PostgreSQL

docker run --name tomcat-openapi-postgres -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword -d postgres:16.3-alpine3.18

Start application

DB_URL="localhost:5432/postgres" DB_USER=postgres DB_PASS=mysecretpassword ./gradlew run

Development

Visual Studio Code Extensions:

Extension Pack for Java

Install "Extension Pack for Java" from Microsoft: https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

Gradle Extension Pack

Install "Gradle Extension Pack" from Richard Willis https://marketplace.visualstudio.com/items?itemName=richardwillis.vscode-gradle-extension-pack

Endpoints

Name Endpoint
Service Info http://localhost:8080/