repowisedotnet-architecture/eshoponweb

Architecture of dotnet-architecture/eshoponweb

dotnet-architecture/eshoponweb is 280 source files holding 1,451 symbols across 2 modules, written mainly in C#, Dockerfile, JavaScript. The largest module is src, with 224 files, and 3 files are entry points into the dependency graph.

How eshoponweb fits together

The store's website is the web application in src/Web/Program.cs, which is the entry point for the main site. The admin page is a Blazor WebAssembly app in src/BlazorAdmin/Program.cs that runs in the browser and must communicate with the server through the PublicApi web application, whose entry point is src/PublicApi/Program.cs. The Infrastructure project at src/Infrastructure/Infrastructure.csproj is the target for the Entity Framework Core migrations of the catalogcontext and appidentitydbcontext contexts, which hold the catalog and shopping cart data and the user identity data. The tests directory holds the project's test code, and the infra directory holds its infrastructure files. Data is seeded into both databases on the first run, and an in memory database can be used instead of SQL Server through the UseOnlyInMemoryDatabase setting.

Largest modules

  • src: 224 files and 6,177 lines of code
  • tests: 46 files and 1,622 lines of code
  • root: 5 files and 166 lines of code
  • .github: 3 files and 40 lines of code
  • infra: 2 files and 156 lines of code

Languages

By file count: C# 248 files, Dockerfile 2 files, JavaScript 1 file.

More on eshoponweb: summary and FAQ, codebase overview, code health.