Skip to content

sabatex/SabatexBlazor

Repository files navigation

Sabatex.RadzenBlazor

A comprehensive solution for building modern web applications using the WebSite (SSR) + WebApp (WASM) architecture with Radzen Blazor components.

NuGet GitHub


📖 What is Sabatex.RadzenBlazor?

Sabatex.RadzenBlazor is NOT just a component library — it's a complete architectural solution for building Blazor applications that combine:

  • WebSite (SSR) — Fast server-side rendered pages for public content, SEO, and marketing (without JavaScript/WASM).
  • WebApp (WASM) — Interactive client-side applications for complex business logic, offline support, and PWA.

Key features:

  • ✅ Extends Radzen.Blazor with CRUD data grid, API adapter, and utilities.
  • ✅ Universal BaseController for automatic REST API generation.
  • ✅ Built-in ASP.NET Core Identity integration (Google/Microsoft OAuth, Email sender).
  • ✅ Minimal setup — plug-and-play NuGet packages.

🚀 Quick Start

Prerequisites

  • .NET 10 SDK (download)
  • Visual Studio 2022+ or VS Code with C# extension
  • SQL Server or PostgreSQL (for ASP.NET Core Identity)

Required dependencies (if not already installed):

1. Installation

Install NuGet packages:

For WASM projects:

dotnet add package Sabatex.RadzenBlazor --prerelease

For Server projects:

dotnet add package Sabatex.RadzenBlazor.Server --prerelease

2. Server Setup (Program.cs)

2.1. Add DbContext and Identity

builder.Services.AddDbContext<AppDbContext>(options =>
    options.UseSqlServer(builder.Configuration.GetConnectionString("DefaultConnection")));

// Add ASP.NET Core Identity
builder.Services.AddDefaultIdentity<IdentityUser>(options =>
{
    options.SignIn.RequireConfirmedAccount = true;
})
.AddEntityFrameworkStores<AppDbContext>();

2.2. Configure appsettings.json

{
  "ConnectionStrings": {
    "DefaultConnection": "Server=your_server;Database=your_db;User Id=your_user;Password=your_password;"
  },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft": "Warning",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "AllowedHosts": "*"
}

2.3. Configure services in Program.cs:

builder.Services.AddSabatexRadzenBlazor();

2.4. Configure HTTP request pipeline in Startup.cs:

app.UseSabatexRadzenBlazor();

3. Update database

Run migrations to update the database schema:

dotnet ef database update

📚 Documentation


🤝 Contributing

Contributions are welcome! Please read CONTRIBUTING.md for guidelines.


📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🔗 Links


⚠️ Status

Note: ASP.NET Core Identity UI pages (Login, Register, etc.) are currently under development. Manual Identity configuration is required (as shown in the Quick Start). Check the Demo project for the latest implementation.


Happy coding with Sabatex.RadzenBlazor! 🚀

About

The extension for Radzen blazor conponents

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •