Starting Krenalis

View as Markdown

At this point, you've already:

  1. Installed Krenalis from source
  2. Created the PostgreSQL database
  3. Configured the NATS event stream

and you should have, in the directory when Krenalis has been compiled, the following files:

Linux and macOS

├─ .env
└─ krenalis

Windows

├─ .env
└─ krenalis.exe

The .env file must already contain KRENALIS_KMS, the PostgreSQL settings, and the NATS settings.

Start Krenalis with the -init-db-if-empty option. On first startup, this initializes the PostgreSQL database by creating the required tables. If the database is already initialized, it has no effect.

Linux and macOS

./krenalis -init-db-if-empty

Windows

krenalis.exe -init-db-if-empty

After some seconds you should then get output similar to:

...     INFO The Krenalis server has been started at 127.0.0.1:2022
├─ REST API: http://127.0.0.1:2022/v1/
└─ Event ingestion endpoint: http://127.0.0.1:2022/v1/events

 > Admin console: http://127.0.0.1:2022/admin

You can then open the Admin console at the address indicated (in this case http://127.0.0.1:2022/admin).

Next step

Now you can proceed with creating your first workspace.