How msgmarketing/wpfw-portfolio works
WPFW Portfolio is a portfolio web application with an ASP.NET Core API for authentication and role-protected project and blogpost management, alongside static portfolio, project, blog, and contact pages. The API workflow routes requests through controllers to services and then the EF Core context; Identity and SQL Server provide supporting state. The tree also shows browser-side scripts, but their API wiring is not established by the available excerpts. The backend startup and controller-to-service links are excerpted; some subsystem details are known only from the tree and source index.
Main entry points: Program.cs API Startup · AppDbContext.cs EF Core Context · ProjectService.cs Project Service · BlogpostService.cs Blogpost Service
Components 19
Portfolio Website
- Portfolio Pages
index.html - Project Browser
js/projects.js - Blog Browser
js/blog.js - Contact Form
js/contact.js - Browser API Helper
js/api.js
API Endpoints
- Authentication API
PortfolioBackend/Controllers/AuthController.cs - Projects API
PortfolioBackend/Controllers/ProjectsControllers.cs - Blogposts API
PortfolioBackend/Controllers/BlogpostsController.cs - API Startup
PortfolioBackend/Program.cs
Domain Services
- Project Service
PortfolioBackend/Services/ProjectService.cs - Blogpost Service
PortfolioBackend/Services/BlogpostService.cs - Project Service Contract
PortfolioBackend/Services/Interfaces/IProjectService.cs - Blogpost Service Contract
PortfolioBackend/Services/Interfaces/IBlogpostService.cs
Persistence And Identity
- EF Core Context
PortfolioBackend/Data/AppDbContext.cs - Project Records
PortfolioBackend/Models/Entities/Project.cs - Blogpost Records
PortfolioBackend/Models/Entities/Blogpost.cs - Identity Seeder
PortfolioBackend/Data/DbInitializer.cs
Other components
- Visitor / Editor
- SQL Server
Connections 13
- Visitor / Editor → Portfolio Pages: views
- Visitor / Editor → Authentication API: authenticates
- API Startup → EF Core Context: registers
PortfolioBackend/Program.cs - API Startup → Project Service: registers
PortfolioBackend/Program.cs - API Startup → Blogpost Service: registers
PortfolioBackend/Program.cs - API Startup → Identity Seeder: seeds roles
PortfolioBackend/Program.cs - API Startup → SQL Server: configures provider
PortfolioBackend/Program.cs - Projects API → Project Service Contract: calls
PortfolioBackend/Controllers/ProjectsControllers.cs - Blogposts API → Blogpost Service Contract: calls
PortfolioBackend/Controllers/BlogpostsController.cs - Project Service → EF Core Context: reads and writes
PortfolioBackend/Services/ProjectService.cs - Blogpost Service → EF Core Context: reads and writes
PortfolioBackend/Services/BlogpostService.cs - EF Core Context → Project Records: maps
PortfolioBackend/Data/AppDbContext.cs - EF Core Context → Blogpost Records: maps
PortfolioBackend/Data/AppDbContext.cs