Kjógvi 1
-
Start the PostgreSQL database server:
docker compose up -d
Database runs on port 5498, see the
compose.yamlfile for credentials. -
Install the dependencies:
mix deps.get
-
If running for the first time, setup the database:
mix ecto.setup
-
Start the server:
iex -S mix phx.server
Application will be available on http://localhost:4000.
-
If there are pending migrations, you will be prompted to run them.
-
To setup admin user, find the setup code in the logs.
-
Create the test DB:
MIX_ENV=test mix ecto.setup
-
Run the tests:
mix test
- Country and subdivision geo data is derived from the iso-codes project (ISO 3166 codes and names), licensed under LGPL-2.1-or-later.
Footnotes
-
Pronounced [ˈtʃɛkvɪ]. ↩