Skip to content

Installation

To manipulate the Didact platform and use your flow library, you need to install several apps first.

KISS

If you would like to see a more in-depth, technically-expressive installation guide, then feel free to read the Installation setup page.

Spin up database

First, Didact requires a database as it is a highly-relational orchestrator, so you need to spin up a new database instance for Didact. See database providers for a list of what databases are supported.

Keep it separate, keep it safe

A pre-existing database can be used if necessary, but it's my general recommendation to spin up a dedicated database since it will house significant metadata and track its own migrations.

Install Didact CLI

Now you need to install Didact CLI, the central utility tool to help you manage the rest of the Didact platform.

You can install Didact CLI by using the provided installer scripts below:

powershell
iex https://install.didact.dev/windows | irm
bash
curl https://install.didact.dev/mac
bash
curl https://install.didact.dev/linux

Ensure that the installation was successful by running the version command below:

bash
didact version

Setup config

Now you need to setup the didact config file, named didact.config.json, and save the database settings to run migrations.

First, run the config init command:

bash
didact config init

Next, set the database provider key and database connection string with the config set command below:

bash
didact config set Database.Provider db-provider-key
bash
didact config set Database.ConnectionString "your-conn-string"

Ensure that your config settings were saved successfully by running the config inspect command:

bash
didact config inspect

Run migrations

Now you need to run migrations against your database instance. Run the following database migration command:

bash
didact migrate

Install engine and UI

Next, install both Didact Engine and Didact UI with the install command:

bash
didact install

Proudly powered by VitePress