- Java 17
- Spring Boot 3.0.4
- PostgreSQL
- OpenAPI 3.0.3
- Install Java 17 - https://adoptium.net/installation/
- Install PostgreSQL - https://www.postgresql.org/
- Use docker-compose.yml, it contains PostgreSQL(5432) and Adminer(8282)
- Manually download and install appropriate version
- Clone repository - https://github.com/iSharipov/krusty-krab-recipes.git
- Run Gradle Wrapper command:
./gradlew clean build
- Go to:
/build/libs
- Run:
java -jar .\krusty-krab-recipes-1.0-SNAPSHOT.jar
http://localhost:8080/swagger-ui/index.html
CONTAINS, DOES_NOT_CONTAIN, EQUAL, NOT_EQUAL, BEGINS_WITH, DOES_NOT_BEGIN_WITH, ENDS_WITH,
DOES_NOT_END_WITH, NUL, NOT_NULL, GREATER_THAN, GREATER_THAN_EQUAL, LESS_THAN, LESS_THAN_EQUAL,
ANY, ALL;
"cn", "nc", "eq", "ne", "bw", "bn", "ew",
"en", "nu", "nn", "gt", "ge", "lt", "le"
App supports PostgreSQL and MySQL Add your own application.yml file to the same level with the jar file, so /build/libs and rewrite the necessary settings
spring:
datasource:
url: jdbc:mysql://127.0.0.1:3306/recipes
driverClassName: com.mysql.jdbc.Driver
username: ${username}
password: ${password}