Repo map

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.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.
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:

FileReaches
src/PublicApi/Program.cs9 files
src/Web/Program.cs9 files
src/BlazorAdmin/Program.cs4 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

RouteMethod
/userGetCurrentUser · src/Web/Controllers/UserController.csGET
/order/[action]MyOrders · src/Web/Controllers/OrderController.csGET
/manage/[action]SendVerificationEmail · src/Web/Controllers/ManageController.csPOST
/api/authenticateHandleAsync · src/PublicApi/AuthEndpoints/AuthenticateEndpoint.csPOST
/userLogout · src/Web/Controllers/UserController.csPOST
/manage/[action]ChangePassword · src/Web/Controllers/ManageController.csGET
/api/catalog-itemssrc/PublicApi/CatalogItemEndpoints/CatalogItemListPagedEndpoint.csGET
/api/catalog-itemssrc/PublicApi/CatalogItemEndpoints/CreateCatalogItemEndpoint.csPOST

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:

TableUsed by
CatalogItems9 columns · links to CatalogBrands and CatalogTypes · src/ApplicationCore/Entities/CatalogItem.cs1 read2 write
OrderItems3 columns · src/ApplicationCore/Entities/OrderAggregate/OrderItem.cs3 read0 write
CatalogBrands1 column · src/ApplicationCore/Entities/CatalogBrand.cs1 read2 write
CatalogTypes1 column · src/ApplicationCore/Entities/CatalogType.cs1 read2 write
Baskets1 column · src/ApplicationCore/Entities/BasketAggregate/Basket.cs1 read0 write
BasketItems4 columns · links to Baskets and CatalogItems · src/ApplicationCore/Entities/BasketAggregate/BasketItem.cs0 read0 write
Orders3 columns · src/ApplicationCore/Entities/OrderAggregate/Order.cs0 read0 write

One request, traced

Nodeway followed POST /manage/[action] from its route to the code that handles it, then along confirmed calls.

  1. POST /manage/[action]route · src/Web/Controllers/ManageController.cs
  2. SendVerificationEmailmethod · src/Web/Controllers/ManageController.cs:106
  3. SendEmailConfirmationAsyncmethod · src/Web/Extensions/EmailSenderExtensions.cs:9
  4. 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.

FunctionCallers
ComposePicUrimethod · src/ApplicationCore/Interfaces/IUriComposer.cs7
ComposePicUrimethod · src/ApplicationCore/Services/UriComposer.cs7
LogInformationmethod · src/ApplicationCore/Interfaces/IAppLogger.cs6
LogInformationmethod · src/Infrastructure/Logging/LoggerAdapter.cs6
CorrelationIdmethod · src/PublicApi/BaseMessage.cs6
Listmethod · src/BlazorAdmin/Services/CatalogLookupDataService.cs5
Listmethod · src/BlazorAdmin/Services/CachedCatalogLookupDataServiceDecorator .cs4
Listmethod · src/BlazorAdmin/Services/CatalogItemService.cs4

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 ComposePicUri and 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.

More codebases, mapped

All repo maps

See your whole codebase in minutes.

Open a folder and Nodeway maps it on your own computer. No account, and nothing is uploaded.

More guides