Merge pull request #35 from cato447/postgres-implementation

added support for postgres
This commit is contained in:
cato
2022-07-14 01:25:41 +02:00
committed by GitHub
3 changed files with 8 additions and 3 deletions

2
.gitignore vendored
View File

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

View File

@@ -3,10 +3,10 @@ server:
spring: spring:
datasource: datasource:
url: jdbc:h2:mem:whattocook url:
username: sa username:
password: password:
driverClassName: org.h2.Driver driver-class-name:
data: data:
rest: rest:
base-path: /api/v1 base-path: /api/v1

View File

@@ -29,6 +29,9 @@ dependencies {
// https://mvnrepository.com/artifact/com.h2database/h2 // https://mvnrepository.com/artifact/com.h2database/h2
implementation group: 'com.h2database', name: 'h2', version: '1.3.148' 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 // okhttp
implementation("com.squareup.okhttp3:okhttp:4.10.0") implementation("com.squareup.okhttp3:okhttp:4.10.0")