doc/articles/guides/using-the-server-project.md
As part of the uno platform templates, the server option is provided to allow the hosting of both an API server as well as a WebAssembly app. This allows you to create an API and endpoints. It can also be used as the data server and you can also choose to implement the authentication server code in it.
You will find more information on how to use it from the solution wizard or dotnet new templates.
When creating an app with the server option enabled, you'll get:
net10.0-browserwasmSee below the specifics about the server project per IDE.
To run the project, set the server project as "startup project", then press F5 to enable the debugging.
[!IMPORTANT] See the section below on HTTPS to ensure that debugging works properly
You can start debugging the app in the same way you would when starting the app project directly.
In order to launch the server project in VS Code:
ReplaceMe.Server folderdotnet run -f net10.0 --launch-profile ReplaceMe.Server[!IMPORTANT] See the section below on HTTPS to ensure that debugging works properly
Launching with the debugger is pending on this issue.
[!IMPORTANT] WebAssembly Debugging is not yet supported in Rider. [!IMPORTANT] See the section below on HTTPS to ensure that debugging works properly
As the app will run with https by default, you will get an error about "Mixed Content" not being supported.
To fix this when using Chrome or Edge:
You may also need to trust the developer certificates:
dotnet dev-certs https --trust
If you want to enable for the app project, independently from the server project, you can modify your Properties/launchSettings.json file this way to use https first:
"applicationUrl": "https://localhost:5001;http://localhost:5000",