Full stack web apps with F# and Bolero
Using the Elmish Architecture and F# with Bolero to develop full-stack web applications with .NET and Web Assembly
Updated: 03 September 2023
Bolero is a framework for building full stack web application using F# on the server in .NET and in the browser with WASM and is based on Blazor and makes use of the Elmish application architecture
Create a new app
To create a new Bolero application you need to:
- Install .NET CLI templates
1dotnet new -i Bolero.Templates- Create an app
To create an app with server and client you can use:
1dotnet new bolero-app -o MyBoleroAppThis will output the following:
1MyBoleroApp2|- src3 |- MyBoleroApp.Client4 |- MyBoleroApp.ServerYou can then build the app with:
1dotnet restore2dotnet buildOr run it using:
1dotnet run -p src/MyBoleroApp.ServerWhich will automatically use the hot reloading for the HTML template files
If you want full rebuilding on changes you can use dotnet watch like so:
1dotnet watch -p src/MyBoleroApp.Server run