This repository contains a Blazor Web App with Interactive Server rendering, integrated with the Blazor DataGrid, and configured to run in GitHub Codespaces by using a development container.
It enables a cloud-based development experience without requiring a local environment setup.
- Blazor Web App with Interactive Server rendering
- Blazor DataGrid integration
- Preconfigured
.devcontainerfor Codespaces - .NET 10 SDK environment
- Automatic dependency restoration and setup
- Ready-to-run sample with minimal configuration
Before getting started, ensure you have the following:
- A GitHub account
- Access to GitHub Codespaces
This repository already includes a preconfigured development container at:
.devcontainer/devcontainer.json
- Base image uses the official .NET 10 development container image
- Includes GitHub CLI support
- Installs required Visual Studio Code extensions for Blazor and C#
- Configures port forwarding for the application on port 5000
- Installs WebAssembly (WASM) tools automatically
- Restores NuGet packages during container setup
This setup ensures that the development environment is ready immediately after Codespaces starts.
Follow these steps to run the application:
Open this repository in your browser on GitHub.
- Click the Code button
- Select the Codespaces tab
- Click Create codespace on main
GitHub Codespaces will automatically:
- Create the development container
- Install the .NET SDK and required tools
- Restore dependencies
- Open Visual Studio Code in the browser
Once Codespaces is ready, open the integrated terminal and run the following commands:
cd BlazorApp
dotnet run --urls=http://0.0.0.0:5000After running the application:
- Open the Ports panel in Codespaces
- Locate port
5000 - Click Open in Browser
The application will load in your browser.
This sample demonstrates the integration of the Blazor DataGrid component within a Blazor Web App.
It shows how the DataGrid can be added and rendered using Interactive Server mode in a Codespaces-enabled environment.