Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thutasann/blazor-webapi-shopping-cart
mini shopping cart application with Blazor Wasm and Web API
https://github.com/thutasann/blazor-webapi-shopping-cart
blazor dotnet-core entity-framework-core webassembly
Last synced: 23 days ago
JSON representation
mini shopping cart application with Blazor Wasm and Web API
- Host: GitHub
- URL: https://github.com/thutasann/blazor-webapi-shopping-cart
- Owner: thutasann
- Created: 2024-05-09T14:34:36.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-05-14T17:16:45.000Z (9 months ago)
- Last Synced: 2024-11-10T04:37:50.022Z (3 months ago)
- Topics: blazor, dotnet-core, entity-framework-core, webassembly
- Language: C#
- Homepage:
- Size: 18.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
dotnet new sln -n BlazorAPICartApp.sln
```### Dotnet Create Blazor Wasm
```bash
dotnet new blazorwasm -o Cart.Web
```### Dotnet Create Web API
```bash
dotnet new webapi -o Cart.Api
```### Dotnet Create Lib
```bash
dotnet new classlib -n Cart.Lib
```### Add to Sln
```bash
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)
```bash
dotnet add reference ../Cart.Lib/Cart.Lib.csproj
```### EF Migration
```bash
dotnet ef migrations add Init
``````bash
dotnet ef database update
```