Elsa Studio
In this topic, we will create a separate ASP.NET Blazor Webassembly app and turn it into an Elsa Studio that connects to an Elsa Server.
Last updated
In this topic, we will create a separate ASP.NET Blazor Webassembly app and turn it into an Elsa Studio that connects to an Elsa Server.
Last updated
Elsa Studio is a Blazor application that let's you manage workflows through a UI. The application is essentially a SPA that connects to an Elsa Server as its back-end.
To setup Elsa Studio, we'll go through the following steps:
Create a New Blazor Webassembly App
Execute the following command in the terminal:
Deprecation warning
The blazorwasm-empty
template is .
If you are using .NET 8.0+, you can just use blazorwasm
instead of blazorwasm-empty
.
Add Elsa Studio Packages
Navigate to the root directory of your project and integrate the following Elsa Studio packages:
Modify Program.cs
Open the Program.cs
file and replace its existing content with the code provided below:
Program.cs
Remove Unnecessary Files
For a cleaner project structure, delete the following directories and files:
wwwroot/css
Pages
App.razor
MainLayout.razor
MainLayout.razor.css
_Imports.razor
Generate appsettings.json
Within the wwwroot
directory, create a new appsettings.json
file and populate it with the following content:
wwwroot/appsettings.json
Update index.html
To conclude the setup, open the index.html
file and replace its content with the code showcased below:
wwwroot/index.html
To see your application in action, execute the following command:
By default, you can log in using:
Your application is now accessible at .
The source code for this chapter can be found