Commit 0ef50c6
committed
🧱refactor: remove Blazor front-end & reposition API as the core product
Strategic refactor to address technical debt and scope deviation.
Motivation (Why):
- Improved maintainability with full focus on the .NET API ecosystem
(C#, ASP.NET Core, EF Core, SQL Server, Redis).
- The project previously maintained a monolithic coupling with an incomplete Blazor UI (Finance.Web),
which did not meet the same quality standards as the back-end.
- A poorly functioning or visually weak front-end degrades the perceived value of a robust API.
A bad UI anchors perception negatively: “a weak front-end stains a strong back-end”.
- The core identity of this project is back-end engineering. Maintaining a mediocre UI diverted focus
from performance, security, and API architecture.
- A RESTful API must be client-agnostic. Removing the Blazor client enforces proper decoupling and
elevates OpenAPI (Swagger) as the primary interface.
New Product Definition:
- From this commit onward, the API itself is the final product.
- Swagger UI becomes the main interaction surface for developers and reviewers,
exposing endpoints, contracts, and data models transparently.
Technical Changes (How):
- Removed Finance.Web and Finance.Web.Tests from the solution.
- Deleted Blazor source folders from the filesystem.
- Refactored Dockerfile to remove unnecessary build stages tied to the front-end.
- Added .dockerignore to reduce Docker build context and image size.
- Updated CORS policy:
- Removed hardcoded localhost origin tied to the former front-end.
- Adopted a permissive development-focused policy to support Swagger, Postman,
and future client integrations.
Impact:
- Breaking change: the application no longer serves HTML/Blazor pages.
- Significantly reduced build times.1 parent 84e30d7 commit 0ef50c6
97 files changed
Lines changed: 9 additions & 62150 deletions
File tree
- Finance.Api.Tests
- Finance.Api/Extensions
- Finance.Web.Tests
- Properties
- Finance.Web
- Authentication
- Handlers
- Interfaces
- Layout
- Pages
- Categories
- Transactions
- Properties
- wwwroot
- css
- images
- lib/bootstrap/dist
- css
- js
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
29 | 35 | | |
30 | 36 | | |
31 | 37 | | |
| |||
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | | - | |
| 43 | + | |
38 | 44 | | |
39 | 45 | | |
40 | 46 | | |
| |||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments