What to build:
A web app to manage employee records (CRUD: Create, Read, Update, Delete)
Role-based login (admin vs employee)
REST API layer for future integrations
Stretch Goal: Deploy to Azure App Services and integrate Azure SQL.
steps of creation:
- Install .NET dependencies from https://learn.microsoft.com/en-us/dotnet/
- First built simple blazor app with name 'EmployeeManagementSystem' using
dotnet new blazorserver -n EmployeeManagementSystemandcd EmployeeManagementSystemcommands - Build all the dependencies using
dotnet build - Next Run the basic project creation with
dotnet run - Navigate to the host which it depicts in terminal to see the application
- Now build a basic web app with CRUD opearations for Employees
- Establishing user-friendly separate dashboards for Home Page and Employees Page
- Create an about page
- Make various views - Admin and Employee
- Setting up and enabling authentication by installing these packages -
dotnet add package Microsoft.AspNetCore.Identity.EntityFrameworkCoredotnet add package Microsoft.AspNetCore.Identity.UIdotnet add package Microsoft.EntityFrameworkCore.SqlServerdotnet add package Microsoft.EntityFrameworkCore.Tools - Create and apply the database migrations:
dotnet ef migrations add CreateIdentitySchemadotnet ef database update