A Blazor Server admin panel for managing Countries, Contacts, and Addresses with RBAC features.
- Blazor Server web application
- MudBlazor v9.0.0-preview.1 UI components
- SQL Server database with Entity Framework Core
- ASP.NET Core Identity authentication
- Role-Based Access Control (RBAC)
- SuperAdmin: Full access including user management and deleted record restore
- Admin: Entity management and audit log viewing
- Manager: Create and edit entities
- Viewer: Read-only access
- Entity Management
- Countries (ISO 3166-1 data)
- Contacts
- Addresses
- Audit Logging for all entity changes
- Soft Delete with restore capability
- Search Filters on all list pages
- Pagination for large data sets
- .NET 9.0 SDK
- SQL Server (LocalDB or full instance)
- Clone the repository
- Navigate to the project directory:
cd src/NeatAdmin.Web - Update the connection string in
appsettings.jsonif needed - Run the application:
dotnet run
- The database will be automatically created and seeded with:
- 195 ISO 3166-1 countries
- 100 sample contacts with addresses (via Bogus)
- Default users for each role
| Password | Role | |
|---|---|---|
| superadmin@neatadmin.com | Admin@123! | SuperAdmin |
| admin@neatadmin.com | Admin@123! | Admin |
| manager@neatadmin.com | Admin@123! | Manager |
| viewer@neatadmin.com | Admin@123! | Viewer |
src/NeatAdmin.Web/
├── Components/
│ ├── Account/ # Login, Register, Logout
│ ├── Admin/ # Admin pages (Countries, Contacts, Users, AuditLogs)
│ ├── Layout/ # Main layout with MudBlazor
│ ├── Pages/ # Home/Dashboard
│ └── Shared/ # Shared components
├── Data/
│ ├── Entities/ # Entity models
│ └── Seeding/ # Database seeders
├── Services/ # Business logic services
└── Program.cs # Application entry point
- .NET 9.0
- Blazor Server
- MudBlazor v9.0.0-preview.1
- Entity Framework Core
- ASP.NET Core Identity
- Bogus (for test data generation)