This sample is prepared for deployment to GitHub Pages.
- Blazor WebAssembly client app
- Monaco Editor loaded from CDN
- Reusable
MonacoEditor.razorcomponent - Sample script editor page for
BeforeEmployeeSaved - Fake client-side validation service
- GitHub Actions workflow for Pages deployment
- Create a new GitHub repository.
- Upload the contents of this ZIP to the repository root.
- Push to the
mainbranch. - In GitHub, open Settings → Pages.
- Ensure Source is set to GitHub Actions.
- Open the Actions tab and wait for the workflow named Deploy Blazor WASM to GitHub Pages to finish.
- Your app will be available at:
https://<your-user>.github.io/<your-repo>/
- The workflow automatically rewrites the Blazor
<base href>using the repository name. - It also copies
index.htmlto404.htmlso client-side routing works on GitHub Pages. - Monaco is loaded from a CDN in
wwwroot/index.html. - Replace
FakeScriptValidationServicewith a real API call when you integrate Roslyn validation.
Run the app locally with the normal Blazor workflow:
dotnet restore
dotnet run --project MonacoBlazorWasmSample.Client