added support for postgres

This commit is contained in:
2022-07-14 01:15:39 +02:00
parent f5e433ee19
commit d9dcda19df
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

@@ -96,3 +96,5 @@ frontend/src/index.js
.env
.DS_Store
backend/src/resources/application.yml

View File

@@ -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

View File

@@ -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")