Company-Wide Application Architecture
Shared Front-End & Backend Architecture
Designed the shared architecture adopted across company projects: the front-end foundation, the backend structure, and the error-handling contract that connects them.
- Role
- Architecture design · Front end and backend structure
- Focus
- Adopted across company projects · One error contract · Design tokens
Client and internal details are intentionally kept abstract.
- Tech stack
- React
- TypeScript
- Tailwind CSS
- TanStack Query
- Zustand
- Zod
- Axios
- C# / ASP.NET Core
- Product scope
- Shared components
- Design-token system
- Tailwind themes
- Multi-session authentication
- Backend structure
- Error-handling contract
The problem
New projects repeated the same setup work and architecture decisions, and front-end and back-end developers agreed on API behavior project by project.
Result
Adopted across company projects. It cut project setup time and repeated architecture decisions, and gave front-end and back-end developers an agreed contract from day one.
Key contributions
What I built
Shared components
Designed the shared component layer and project structure that new applications start from.
Design tokens and themes
Built a design-token system with Tailwind themes, so applications share one visual foundation.
Multi-session authentication
Implemented multi-session authentication using secure cookies.
Backend structure
Defined the backend structure the front end builds against, so both sides start from the same contract.
Error-handling contract
ASP.NET Core global exception handling (IExceptionHandler + ProblemDetails) returns one error shape, handled on the front end by a single Axios interceptor.
Per-client theming
In some projects, extended the design tokens to load values from the database at runtime, so apps could be themed per client. This sits outside the shared template.
Architecture
Layered foundation
Application
Any new company project
Front-End Foundation
Shared components, design tokens, Tailwind themes
Axios Interceptor
One place on the client that handles API errors
Error Contract
ProblemDetails: one error shape
ASP.NET Core Backend
Global exception handling with IExceptionHandler
Authentication
Multi-session auth with secure cookies
Engineering challenge
One error shape, end to end
Every exception on the server goes through ASP.NET Core global exception handling (IExceptionHandler) and comes back as ProblemDetails. On the client, a single Axios interceptor reads that one shape, so error handling lives in one place on each side.
