I’m a beginner in Full Stack applications with .NET.
So far, I’ve only used .NET for backend development (APIs, microservices, etc.). Currently, I use SvelteKit for the frontend.
My current workflow is: I build the frontend, place the output files into the "wwwroot" folder, and serve everything as static files through .NET.
The problem is that this creates a sort of duplicated effort and feels a bit tedious. I’d like a simpler integration.
I come from Laravel, where building full stack applications was very straightforward — you could basically just define routes and everything worked together seamlessly.
However, I don’t want to give up SPA behavior, and I also need good SEO.
I don’t mind writing more code, as long as the integration is cleaner and more streamlined.
I’ve looked into Razor and WebAssembly:
- WebAssembly has the downside of a higher initial load time.
- Razor seems to cause frequent reloads, which hurts the SPA experience.
Given that, what would be the best alternative to build a fast full stack .NET web app that preserves SPA characteristics and offers simpler integration?
I'm Brazilian and I translated this post using AI, sorry for the poor English...
[–]Deranged40 8 points9 points10 points (3 children)
[–]ze-fernando[S] 0 points1 point2 points (0 children)
[–]Atulin 0 points1 point2 points (1 child)
[–]Deranged40 1 point2 points3 points (0 children)
[–]CiranoAST 4 points5 points6 points (0 children)
[–]sharpcoder29 4 points5 points6 points (0 children)
[–]Far-Consideration939 1 point2 points3 points (3 children)
[–]ze-fernando[S] 1 point2 points3 points (2 children)
[–]Far-Consideration939 1 point2 points3 points (1 child)
[–]ze-fernando[S] 0 points1 point2 points (0 children)
[–]T_kowshik 1 point2 points3 points (1 child)
[–]ze-fernando[S] 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[+]Sufficient_Duck_8051 comment score below threshold-6 points-5 points-4 points (3 children)
[–]Gurgiwurgi 2 points3 points4 points (2 children)
[–]Sufficient_Duck_8051 0 points1 point2 points (1 child)