liveBook · Manning

SportsStore

As explained in Pro ASP.NET Core 7, Tenth Edition

SportsStore is a sample e-commerce application project developed throughout this book.

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

How Pro ASP.NET Core 7, Tenth Edition covers it

How deep it goes
Builds incrementally from a minimal project through catalog, cart, checkout, administration, and testing, while simplifying external integrations.
Examples
Demonstrates a product catalog, shopping cart, checkout, administration CRUD, session persistence, validation errors, and project creation commands.
What it assumes
Assumes prior ASP.NET Core patterns, essential C#, and development tools, then starts the application from a minimal web project.
What you can do after
Build it from scratch as a maintainable ASP.NET Core e-commerce application with catalog, cart, checkout, administration, and unit-tested components.
How it connects
Connects ASP.NET Core, Entity Framework Core, session data, view components, model validation, authorization, and unit testing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Pro ASP.NET Core 7, Tenth Edition. The section links point to the parts of the book it draws on.