SportsStore is a realistic ASP.NET Core e-commerce application built incrementally from a minimal project. It provides a coherent way to see application features, infrastructure, and testing fit together. section 1.2.5 section 7.0
The application grows to include:
- A browsable product catalog organized by category and page. section 7.0
- A shopping cart that supports adding and removing products and persists as session data. section 7.0 section 9.0
- A checkout flow that accepts and validates shipping details. section 7.0 section 9.0
- An administration area with catalog create, read, update, and delete operations, protected for logged-in administrators. section 7.0
- Unit tests that isolate different ASP.NET Core components during development. section 7.0
Start the project
Create a .NET 7 web project and solution from PowerShell: dotnet new globaljson --sdk-version 7.0.100 --output SportsSln/SportsStore; dotnet new web --no-https --output SportsSln/SportsStore --framework net7.0; dotnet new sln -o SportsSln; dotnet sln SportsSln add SportsSln/SportsStore. section 7.1
Listing 7.1 Creating the SportsStore project
dotnet new globaljson --sdk-version 7.0.100 --output SportsSln/SportsStore dotnet new web --no-https --output SportsSln/SportsStore --framework net7.0 dotnet new sln -o SportsSln dotnet sln SportsSln add SportsSln/SportsStore
Use the project-creation listing for the exact solution, project, SDK, framework, and HTTPS configuration commands. section 7.1
