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

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:

  1. Install .NET CLI templates
dotnet new -i Bolero.Templates
  1. Create an app

To create an app with server and client you can use:

dotnet new bolero-app -o MyBoleroApp

This will output the following:

MyBoleroApp
|- src
  |- MyBoleroApp.Client
  |- MyBoleroApp.Server

You can then build the app with:

dotnet restore
dotnet build

Or run it using:

dotnet run -p src/MyBoleroApp.Server

Which 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:

dotnet watch -p src/MyBoleroApp.Server run