Database configuration
Axion supported databases (DB):
-
PostgreSQL – use for production
-
H2 – use for review or development
Axion is pre-configured for work with DB.
PostgreSQL configuration
Default DB configurations set in Axion:
-
DB name – axion
-
username – axion
-
password – secret
Create a PostgreSQL DB with stated configurations and make sure to provide privileges to the user.
Usefull commands in PostgreSQL:
DB creation:
CREATE DATABASE axion;
User and password creation:
CREATE USER axion WITH ENCRYPTED PASSWORD 'secret';
Grant privileges to the user:
GRANT ALL PRIVILEGES ON DATABASE axion TO axion;
If you desire to use different configurations fo DB make sure to add them to application.yml or pass them with -D key when launching Axion (see Application configuration).