feat: conncet backend with database

This commit is contained in:
sBubshait 2025-07-20 15:14:09 +03:00
parent be6bfa1308
commit c78f246d96
3 changed files with 24 additions and 0 deletions

2
backend/.gitignore vendored
View File

@ -31,3 +31,5 @@ build/
### VS Code ### ### VS Code ###
.vscode/ .vscode/
.env
env.properties

View File

@ -1 +1,2 @@
spring.application.name=wesal spring.application.name=wesal
spring.config.import=env.properties

View 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