Skip to content

About

This demo shows sample code for running Syncfusion Blazor components in GitHub Codespaces.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Blazor Codespaces Integration

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.

Features

  • Blazor Web App with Interactive Server rendering
  • Blazor DataGrid integration
  • Preconfigured .devcontainer for Codespaces
  • .NET 10 SDK environment
  • Automatic dependency restoration and setup
  • Ready-to-run sample with minimal configuration

Prerequisites

Before getting started, ensure you have the following:

Dev container configuration

This repository already includes a preconfigured development container at:

.devcontainer/devcontainer.json

Key configuration details

  • 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.

Running the application in GitHub Codespaces

Follow these steps to run the application:

1. Open the repository

Open this repository in your browser on GitHub.

2. Launch Codespaces

  • Click the Code button
  • Select the Codespaces tab
  • Click Create codespace on main

3. Wait for initialization

GitHub Codespaces will automatically:

  • Create the development container
  • Install the .NET SDK and required tools
  • Restore dependencies
  • Open Visual Studio Code in the browser

4. Run the application

Once Codespaces is ready, open the integrated terminal and run the following commands:

cd BlazorApp
dotnet run --urls=http://0.0.0.0:5000

Access the application

After running the application:

  • Open the Ports panel in Codespaces
  • Locate port 5000
  • Click Open in Browser

The application will load in your browser.

DataGrid implementation

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.

References

About

This demo shows sample code for running Syncfusion Blazor components in GitHub Codespaces.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages