From d9dcda19df6454851a5f2046b5476888acc6cff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Bu=C3=9Fmann?= Date: Thu, 14 Jul 2022 01:15:39 +0200 Subject: [PATCH] added support for postgres --- .gitignore | 2 ++ .../resources/{application.yml => application.yml.example} | 6 +++--- build.gradle | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) rename backend/src/resources/{application.yml => application.yml.example} (61%) diff --git a/.gitignore b/.gitignore index ef5a5f4..a08c3b2 100644 --- a/.gitignore +++ b/.gitignore @@ -96,3 +96,5 @@ frontend/src/index.js .env .DS_Store + +backend/src/resources/application.yml diff --git a/backend/src/resources/application.yml b/backend/src/resources/application.yml.example similarity index 61% rename from backend/src/resources/application.yml rename to backend/src/resources/application.yml.example index 32275c8..d64ad57 100644 --- a/backend/src/resources/application.yml +++ b/backend/src/resources/application.yml.example @@ -3,10 +3,10 @@ server: spring: datasource: - url: jdbc:h2:mem:whattocook - username: sa + url: + username: password: - driverClassName: org.h2.Driver + driver-class-name: data: rest: base-path: /api/v1 diff --git a/build.gradle b/build.gradle index 6a8174c..57002e6 100644 --- a/build.gradle +++ b/build.gradle @@ -29,6 +29,9 @@ dependencies { // https://mvnrepository.com/artifact/com.h2database/h2 implementation group: 'com.h2database', name: 'h2', version: '1.3.148' + // https://mvnrepository.com/artifact/org.postgresql/postgresql + implementation group: 'org.postgresql', name: 'postgresql', version: '42.4.0' + // okhttp implementation("com.squareup.okhttp3:okhttp:4.10.0")