eShopOnWeb architecture.
eShopOnWeb is an ASP.NET Core reference application. Nodeway mapped the dotnet-architecture/eShopOnWeb repository at commit 4da8212, from 13 January 2025, and found 210 source files, 538 functions, classes and components, 33 routes and 7 database tables. This page is drawn from that map.
- Source files
- 210
- Functions and classes
- 538
- Confirmed calls
- 193
- Routes
- 33
- Tables
- 7
How the code is laid out
Most of it is C#: 209 files of 210, followed by JavaScript (1).
The repository is split into 6 packages: folders with their own manifest, such as a package.json, pyproject.toml or go.mod. The largest are src/Web (65 files), src/ApplicationCore (40 files), src/PublicApi (35 files), src/Infrastructure (30 files), src/BlazorAdmin (20 files) and src/BlazorShared (20 files).
These are its top-level folders by number of source files. The biggest ones show their own largest folders underneath.
- src/210 files33 routes · 7 tables
- Web/package65 files25 routes
- ApplicationCore/package40 files7 tables
- PublicApi/package35 files8 routes
- Infrastructure/package30 files
- BlazorAdmin/package20 files
- BlazorShared/package20 files
Where the code starts
Nodeway looked for files that define a main function, and for files named like a starting point (main, server, app, cli and similar) that at most one other file imports, then for index files that nothing imports. Ranked that way, then by how many files each one reaches through its imports:
| File | Reaches |
|---|---|
| src/PublicApi/Program.cs | 9 files |
| src/Web/Program.cs | 9 files |
| src/BlazorAdmin/Program.cs | 4 files |
Routes
Nodeway found 33 routes and linked 26 to the function that handles them. They by HTTP method: GET 18, POST 13, DELETE 1, PUT 1. Most are under src/Web (25) and src/PublicApi (8).
Some of them
| Route | Method |
|---|---|
| /userGetCurrentUser · src/Web/Controllers/UserController.cs | GET |
| /order/[action]MyOrders · src/Web/Controllers/OrderController.cs | GET |
| /manage/[action]SendVerificationEmail · src/Web/Controllers/ManageController.cs | POST |
| /api/authenticateHandleAsync · src/PublicApi/AuthEndpoints/AuthenticateEndpoint.cs | POST |
| /userLogout · src/Web/Controllers/UserController.cs | POST |
| /manage/[action]ChangePassword · src/Web/Controllers/ManageController.cs | GET |
| /api/catalog-itemssrc/PublicApi/CatalogItemEndpoints/CatalogItemListPagedEndpoint.cs | GET |
| /api/catalog-itemssrc/PublicApi/CatalogItemEndpoints/CreateCatalogItemEndpoint.cs | POST |
Data model
Nodeway found 7 database tables, defined with Entity Framework Core. Code in the repository reads or writes 5 of them. The most used:
| Table | Used by |
|---|---|
| CatalogItems9 columns · links to CatalogBrands and CatalogTypes · src/ApplicationCore/Entities/CatalogItem.cs | 1 read2 write |
| OrderItems3 columns · src/ApplicationCore/Entities/OrderAggregate/OrderItem.cs | 3 read0 write |
| CatalogBrands1 column · src/ApplicationCore/Entities/CatalogBrand.cs | 1 read2 write |
| CatalogTypes1 column · src/ApplicationCore/Entities/CatalogType.cs | 1 read2 write |
| Baskets1 column · src/ApplicationCore/Entities/BasketAggregate/Basket.cs | 1 read0 write |
| BasketItems4 columns · links to Baskets and CatalogItems · src/ApplicationCore/Entities/BasketAggregate/BasketItem.cs | 0 read0 write |
| Orders3 columns · src/ApplicationCore/Entities/OrderAggregate/Order.cs | 0 read0 write |
One request, traced
Nodeway followed POST /manage/[action] from its route to the code that handles it, then along confirmed calls.
- POST /manage/[action]route · src/Web/Controllers/ManageController.cs
- SendVerificationEmailmethod · src/Web/Controllers/ManageController.cs:106
- SendEmailConfirmationAsyncmethod · src/Web/Extensions/EmailSenderExtensions.cs:9
- SendEmailAsyncmethod · src/ApplicationCore/Interfaces/IEmailSender.cs:7
The most-called code
Ranked by how many different functions call each one, counting only calls the analyzer could confirm from the code. These are often the helpers worth reading first.
| Function | Callers |
|---|---|
| ComposePicUrimethod · src/ApplicationCore/Interfaces/IUriComposer.cs | 7 |
| ComposePicUrimethod · src/ApplicationCore/Services/UriComposer.cs | 7 |
| LogInformationmethod · src/ApplicationCore/Interfaces/IAppLogger.cs | 6 |
| LogInformationmethod · src/Infrastructure/Logging/LoggerAdapter.cs | 6 |
| CorrelationIdmethod · src/PublicApi/BaseMessage.cs | 6 |
| Listmethod · src/BlazorAdmin/Services/CatalogLookupDataService.cs | 5 |
| Listmethod · src/BlazorAdmin/Services/CachedCatalogLookupDataServiceDecorator .cs | 4 |
| Listmethod · src/BlazorAdmin/Services/CatalogItemService.cs | 4 |
Open this repo in Nodeway
Nodeway is a desktop app that draws this map on your own computer, so you can click into any folder, read the code beside the map and trace a request yourself. Clone the repository:
git clone https://github.com/dotnet-architecture/eShopOnWeb.git- Install Nodeway for macOS, Windows or Linux: the getting started guide has every installer.
- Open the cloned folder. The first map is drawn on your machine and nothing is uploaded.
- Search for
ComposePicUriand trace what it calls, or pick a route and follow it to the database.
New to reading a codebase this size? See how to understand a large codebase and how to read a call graph.
Questions
What language is eShopOnWeb written in?
Mostly C#: 209 of its 210 source files at commit 4da8212, then JavaScript with 1.
Where does the eShopOnWeb code start?
The entry point that reaches the most code is src/PublicApi/Program.cs, which leads to 9 files through its imports.
How many routes does eShopOnWeb have?
Nodeway found 33 routes, 26 of them linked to a handler. The most are under src/Web.
What database tables does eShopOnWeb use?
7 tables, defined with Entity Framework Core. The most used are CatalogItems, OrderItems and CatalogBrands.
How this page was made
Generated from a map Nodeway's analyzer (version 18) made of dotnet-architecture/eShopOnWeb at commit 4da8212, committed on 13 January 2025. Tests, dependencies and build output are mostly left out. A call counts only when the analyzer could confirm its target from the code, so real totals are higher. The project will have changed since.