Skip to content

Commit

Permalink
Merge pull request #3 from viniciusfinger/feature/database-setup
Browse files Browse the repository at this point in the history
Feature/database setup
  • Loading branch information
viniciusfinger authored Jan 6, 2024
2 parents 6703eb0 + 827efaf commit d67c766
Show file tree
Hide file tree
Showing 5 changed files with 146 additions and 3 deletions.
68 changes: 67 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,67 @@
.idea
# Java
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
replay_pid*

# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
pom.xml.bak
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

# Gradle
bin/
build/
.gradle
.gradletasknamecache
gradle-app.setting
!gradle-wrapper.jar

# IntelliJ
out/
.idea/
.idea_modules/
*.iml
*.ipr
*.iws

# Eclipse
.settings/
tmp/
.metadata
.classpath
.project
*.tmp
*.bak
*.swp
*~.nib
local.properties
.loadpath
.factorypath

# NetBeans
nbproject/private/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml

# Visual Studio Code
.vscode/
.code-workspace

# OS X
.DS_Store
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.2.1</version>
<relativePath/> <!-- lookup parent from repository -->
<relativePath/>
</parent>
<groupId>com.viniciusfinger</groupId>
<artifactId>perfect</artifactId>
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/application.properties

This file was deleted.

58 changes: 58 additions & 0 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
###############################################################
##### General configuration ######
###############################################################
spring:
jpa:
database-platform: org.hibernate.dialect.PostgreSQLDialect
generate-ddl: false
server:
servlet:
context-path: /perfect
---

###############################################################
##### Local configuration ######
###############################################################
spring:
config:
activate:
on-profile: develop
datasource:
url: jdbc:postgresql://localhost:5433/perfect
username: perfect
password: perfect
hikari:
connectionTimeout: 20000
maximumPoolSize: 5
jpa:
hibernate:
ddl-auto: update
logging:
level:
root: info
server:
port: 8080
---

###############################################################
##### Cloud configuration ######
###############################################################
spring:
config:
activate:
on-profile: cloud
datasource:
url: ${DATABASE_URL}
username: ${DATABASE_USERNAME}
password: ${DATABASE_PASSWORD}
hikari:
connectionTimeout: ${DATABASE_CONNECTION_TIMEOUT}
maximumPoolSize: ${DATABASE_MAXIMUM_POOL_SIZE}
jpa:
hibernate:
ddl-auto: ${DATABASE_DDL_AUTO}
logging:
level:
root: ${LOG_LEVEL}
server:
port: ${SERVER_PORT}
20 changes: 20 additions & 0 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.......
'`,I!i>>>P>>il:"`.
.`^""^``:<<;,^,;;;E;::;Ii<I,.`^""`'
',:"`^:::I:` ..^;;;R;;:,,,,~;,::""::,.
":` ,:!:' ..^;;;F;;:,,,:];::. ":^
`:^ ':~:` ..^;;;E;;:,,,;];". ,:'
',,`. '+I" ..`;;;C;;:,,,i-: .`:,`
'":,'.:_:' .';;;T;;:,,:?>`.`,:"'
.'"::i~, ..,;;A;;,,:+~;,:,`.
.":I<:..';;P;:,I_>;:^.
"":`^I;"``;I::I!:'`:^`
... '`,><>!^`. ...
`!>~i
^',;,.
`^.;;:,.
.,,i~;;+++~~;,,
.}}}]<<<~~~]}}}.
`^}}}+::::::-}}}^'
.}}}}}}[[[[[[}}}}}]
'''''''''''''''''.

0 comments on commit d67c766

Please sign in to comment.