-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add configuration files; add in-memory database for dev and test
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,5 @@ | |
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
|
||
src/main/resources/application-dev.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Code FREAK | ||
|
||
Code Feedback Review & Evaluation Kit | Educational Online IDE | ||
|
||
## Development environment setup | ||
|
||
1) Set up a database (optional). Currently, drivers for PostgreSQL are included. You can also use the embedded in-memory database. | ||
2) Create a file `src/main/resources/application-dev.properties`. For documentation on how to configure the | ||
server see [application.properties](https://github.com/code-freak/code-freak/blob/master/src/main/resources/application.properties) | ||
in the same directory. Minimum configuration that uses the in-memory database: | ||
``` | ||
spring.jpa.database=HSQL | ||
spring.jpa.hibernate.ddl-auto=create | ||
``` | ||
3) Run the command `./gradlew bootRun`. The application is started at http://localhost:8080. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,28 @@ | ||
########################################################################################## | ||
## These environment-specific properties should be placed in application-dev.properties ## | ||
## and application-prod.properties respectively: ## | ||
########################################################################################## | ||
|
||
# Database configuration, e.g. | ||
# | ||
# spring.datasource.url=jdbc:postgresql://localhost:5432/code-freak | ||
# spring.datasource.username=postgres | ||
# spring.datasource.password=postgres | ||
# spring.datasource.driver-class-name=org.postgresql.Driver | ||
# spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect | ||
# | ||
# or in-memory (DO NOT USE IN PRODUCTION) | ||
# | ||
# spring.jpa.database=HSQL | ||
|
||
# Dev-only | ||
# spring.jpa.show-sql=true | ||
# spring.jpa.hibernate.ddl-auto=create | ||
# logging.level.root=DEBUG | ||
|
||
########################################################################################## | ||
|
||
spring.profiles.active=dev | ||
|
||
# Hides HHH000424: Disabling contextual LOB creation as createClob() method threw error | ||
logging.level.org.hibernate.engine.jdbc.env.internal.LobCreatorBuilderImpl = WARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
spring.jpa.database=HSQL | ||
spring.jpa.show-sql=false | ||
|
||
spring.jpa.hibernate.ddl-auto=create |