This repository contains a full stack application built using ASP.NET Web API and Blazor WebAssembly with .NET 6. The solution is divided into three projects:
- API: The back-end project that provides RESTful endpoints.
- APP: The front-end Blazor WebAssembly application.
- Shared: A class library for shared models and entities used by both the API and the Blazor application.
This solution demonstrates a simple full stack application with ASP.NET Web API handling the back-end logic and data processing, while Blazor WebAssembly serves as the front-end framework for building an interactive user interface. The Shared library is used to ensure consistency between the front-end and back-end by sharing models and entities.
- RESTful API with CRUD operations.
- Interactive front-end built with Blazor WebAssembly.
- Shared library for reusability and consistent data models.
- .NET 6
- ASP.NET Web API for back-end development
- Blazor WebAssembly for front-end development
- Entity Framework Core for database operations
- Dependency Injection for decoupled architecture
- Install .NET 6 SDK: Download
- Install a suitable code editor (e.g., Visual Studio 2022 or Visual Studio Code).
- Clone the repository:
git clone https://github.com/SyedShahriyarAli/BlazorWorkshop.git
- Navigate to the solution directory:
cd BlazorWorkshop
- Open the solution in Visual Studio or Visual Studio Code.
- Restore the NuGet packages:
dotnet restore
- Build the solution:
dotnet build
- Run the projects:
- Start the API project:
cd API dotnet run
- Start the APP project:
cd APP dotnet run
- Access the application:
- API Endpoints: https://localhost:7260/swagger/index.html
- Front-End: https://localhost:7022