/blazor-webapi-shopping-cart

mini shopping cart application with Blazor Wasm and Web API

Primary LanguageC#

Blazor WASM & WEB API Mini Cart App

This is the mini shopping cart app crafted with

  • .NET8
  • Blazor WebAssembly
  • Dotnet Core
  • EF Core
  • MySQL

Features

  • Product Display
  • Add To Cart
  • Delete Item
  • Update Quantity
  • Payment (Credit and PayPal)

Scripts

Dotnet Create Solution

dotnet new sln -n BlazorAPICartApp.sln

Dotnet Create Blazor Wasm

dotnet new blazorwasm -o Cart.Web

Dotnet Create Web API

dotnet new webapi -o Cart.Api

Dotnet Create Lib

dotnet new classlib -n Cart.Lib

Add to Sln

dotnet sln add Cart.Web/Cart.Web.csproj
dotnet sln add Cart.Api/Cart.Api.csproj
dotnet sln add Cart.Lib/Cart.Lib.csproj

Reference Project (P2P)

dotnet add reference ../Cart.Lib/Cart.Lib.csproj

EF Migration

dotnet ef migrations add Init
dotnet ef database update