Step 6: Configuration

Now we have our first application ready to test.

Open the src/main/resources/application.properties file and set the database configuration as described earlier.

You can also provide external config with -Daxelor.config=/path/to/dev.properties
src/main/resources/application.properties
# Database settings
# ~~~~~
db.default.dialect = org.hibernate.dialect.PostgreSQLDialect
db.default.driver = org.postgresql.Driver
db.default.ddl = update
db.default.url = jdbc:postgresql://localhost:5432/axelor-demo  (1)
db.default.user = user (2)
db.default.password = secret (3)
1 use the database axelor-demo
2 the postgresql user
3 the postgresql user’s password

Create the database using the postgresql’s createdb utility:

$ createdb axelor-demo

The application.properties has few more settings that you can adjust if you wish.