feat: conncet backend with database
This commit is contained in:
parent
be6bfa1308
commit
c78f246d96
2
backend/.gitignore
vendored
2
backend/.gitignore
vendored
@ -31,3 +31,5 @@ build/
|
|||||||
|
|
||||||
### VS Code ###
|
### VS Code ###
|
||||||
.vscode/
|
.vscode/
|
||||||
|
.env
|
||||||
|
env.properties
|
||||||
@ -1 +1,2 @@
|
|||||||
spring.application.name=wesal
|
spring.application.name=wesal
|
||||||
|
spring.config.import=env.properties
|
||||||
21
backend/src/main/resources/application.yml
Normal file
21
backend/src/main/resources/application.yml
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
url: ${DB_URL}
|
||||||
|
username: ${DB_USER}
|
||||||
|
password: ${DB_PASSWORD}
|
||||||
|
driver-class-name: org.postgresql.Driver
|
||||||
|
|
||||||
|
jpa:
|
||||||
|
hibernate:
|
||||||
|
ddl-auto: update
|
||||||
|
show-sql: true
|
||||||
|
properties:
|
||||||
|
hibernate:
|
||||||
|
dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||||
|
format_sql: true
|
||||||
|
|
||||||
|
application:
|
||||||
|
name: wesal
|
||||||
|
|
||||||
|
server:
|
||||||
|
port: 8080
|
||||||
Loading…
Reference in New Issue
Block a user