MAUI Blazor Hybrid with backend Web API.
MAUI, Blazor, Fluent UI, NSwag (for Open API), MAUI Community Toolkit
iPhone
Android
MacOS (Catalyst)
The easiest way for the mobile apps to connect to the backend is using DevTunnel.
Install DevTunnel with Brew (macOS):
brew install devtunnel
Launch DevTunnel:
devtunnel host -p 5286 -a
-a
means anonymous - the connection will not prompt for login
Make sure to update the URL in MauiProgram.cs.
builder.Services.AddHttpClient("MyApi", httpClient =>
{
httpClient.BaseAddress = new Uri("https://6m3d3pnd-5286.euw.devtunnels.ms");
});
To start the Postgresql database:
docker compose up
The database will be created when the WebApi is started, provided that the database is up an running.