Deploying your own DABL Chat app

1. Create your DABL Chat project in the Workspace

Sign in to the project:DABL console. Click on New Project and provide a unique name for your project and its first ledger. A new environment with a dedicated ledger will be deployed in a couple of minutes.

Screenshot Placeholder

A. Below your new project, click "Add to Project" on the DABL Chat tile.

Screenshot Placeholder

B. Choose the project and ledger you just made. All the necessary files will be promptly deployed.

Screenshot Placeholder

C. Click on the ledger you just deployed to.

Screenshot Placeholder

2. Configure the deployed files in your DABL Chat ledger

A. Automation file

Go to the Services tab. Click on the top banner to configure the Automation file. Configure the automation to run as UserAdmin. Click Launch. It will take a couple of minutes to deploy.

Screenshot Placeholder

Once the dablchat-bot is running, it will appear under the "Your Services" section. Once the bot has properly initialized it will issue a Chat:UserInvitation contract to your user party. To verify this, you can go to the "Live Data" tab, select your name as the Parties and wait for the Chat:UserInvitation contract to appear:

Screenshot Placeholder

B. UI Assets

Go to the UI Assets tab. There is a file listed beneath "Static Assets". Click "Publish". It will take a few seconds, once it's deployed, click on "Visit Site" to interact with your very own DABL Chat instance!

Screenshot Placeholder

3. You're live!

Interact with the application through the app’s UI:

Screenshot Placeholder

At any point you can inspect the active contracts on the ledger from the "Live Data" tab. Keep in mind that you can only see what you have permissions for, so any bilateral chat for which you are not a party to, is not disclosed to you or any of the Admin parties you control.

Screenshot Placeholder

If you want to modify the DABL Chat app according to your needs you can find the source code on GitHub