Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add application-dev.properties with default values used in docker compose. #160

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ docker compose down
* Run unit tests
* * All unit tests
```
docker compose up be-unit-test
docker compose up be-unit-tests
```
* * A class of unit tests
```
UNIT=CreateEnrollmentMethodTest docker compose up be-unit-test
UNIT=CreateEnrollmentMethodTest docker compose up be-unit-tests
```
* * A unit test method
```
Expand Down
2 changes: 1 addition & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ HELP.md
/build/


application-dev.properties
#application-dev.properties
application-prod.properties

### images location ###
Expand Down
26 changes: 26 additions & 0 deletions backend/src/main/resources/application-dev.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## Datasource
spring.datasource.url=jdbc:postgresql://localhost:5432/hedb
spring.datasource.username=postgres
spring.datasource.password=postgres
spring.datasource.driver-class-name=org.postgresql.Driver

## Jpa
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect

## Resources
figures.dir=${maven.basedir}/../data/images/
export.dir=${maven.basedir}/../data/export/
load.dir=${maven.basedir}/../data/load/

# Restart server
spring.devtools.restart.enabled=true

# Mail server definitions
spring.mail.host=fake-host
spring.mail.port=000
spring.mail.username=fake-username
spring.mail.password=fake-password
spring.mail.properties.mail.transport.protocol="smpt"
spring.mail.properties.mail.debug="true"
spring.mail.properties.mail.smtp.auth=true
spring.mail.properties.mail.smtp.starttls.enable=true
Loading