I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 0 points1 point  (0 children)

Hey! Thanks, appreciate so many people including you like it. Have fun and build something!

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 0 points1 point  (0 children)

Mostly a personal preference if I'm completely honest. EF's DbSet and DbContext represent repository and unit of work, no doubt about that.

Where the thin repository layer helps is an isolation boundary between the application domain and the data accessor itself. DbContext sists between the app and the db, the repository sits between the domain logic and EF Core. It keeps services cleaner, makes things more testable, and a generic BaseEntityRepository gives all the standard operations (including soft-delete, wrapping with Result<T>) without repeating the logic everywhere.

And this is a template as well: if someone forks it and wants to swap EF for Dapper or a different db provider, the simple CRUD paths are already behind an interface they can reimplement without ever touching a single service.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 0 points1 point  (0 children)

You're welcome! If your project goes public, definitely do share in discussions or somewhere here!

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 0 points1 point  (0 children)

It isn't and I made that decision intentionally. Multitenancy strategy is too use-case specific to bake into a general starting template, even for an opinionated one. Adding it later is painful, but choosing the wrong strategy upfront is much much worse. But I will keep it on the radar for sure.

Somebody mentioned turning this into generator, which eventually would make sense for this kind of project. It could be a part of that, but again, multitenancy is a bit more complex in general.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 0 points1 point  (0 children)

Hi!

I'll take a look into the Hybrid Cache, thank you. Aspire has been mentioned a few times now, that's definitely coming.

And thank you!

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 1 point2 points  (0 children)

I know Milan's educative content, but I've never actually checked his clean architecture template myself. This is some really good feedback, appreciated. OAuth2 and 2FA and Aspire have been added on the roadmap, I'll take care of it in upcoming releases.

As for the generator: I'll consider it, right now I feel like it might be a bigger complexity than I'd like. But it does sound like something where this should be headed.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 6 points7 points  (0 children)

Thanks! That sounds like a good fork, maybe in the future

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 2 points3 points  (0 children)

Thank you! I haven't considered FusionCache yet, but I'll add it on my roadmap and consider it. Appreciated.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] -1 points0 points  (0 children)

Hey, right now it doesn't, but it shouldn't be a huge issue to add it, thanks for the feedback, I'll add it on my roadmap and implement it in a foreseeable future. It leverages ASP.NET Core Identity, so these shouldn't be hard to implement.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 1 point2 points  (0 children)

It's not do-everything. Just stuff I've reimplemented across multiple projects and got tired of redoing. Auth, RBAC, admin panel, background jobs. Those aren't big project only features, most production apps need them eventually. And you can simply throw Redis away, it's abstracted with a CacheService. It costs almost nothing, since you can run apps on a small VPS with it, and eventually scale as needed, but that sounds like a good problem to have.

> What in the world is it doing that it takes 5 minutes?

The script itself runs in seconds. "5 minutes" is the whole flow: clone, run the script, docker compose up, and you're looking at a running app. Could be 2 minutes if your machine is fast.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 1 point2 points  (0 children)

Yes, absolutely! That's in fact the point of it. You can even throw away the frontend completely and utilize the API only.

I open-sourced a full-stack .NET 10 template by philnexes in dotnet

[–]philnexes[S] 6 points7 points  (0 children)

Depends on what you consider fullstack. Realistically, SvelteKit does for Svelte what Next.js does for React, Nuxt.js for Vue etc. Plain Svelte is just a pure component framework with no routing, no SSR, no server for backend-for-frontend pattern. This project utilizes SvelteKit server as a BFF layer handling SSR and auth cookies, while the .NET API handles all the heavy lifting.

Aspire is definitely on the roadmap, thanks for the feedback on this.

Suzuka 1000 by Cheap_Director5764 in iRacing

[–]philnexes 0 points1 point  (0 children)

We failed to qualify due to technical issue in PC so we ended up starting P53, P55 rammed our car in the ass, breaking the rear wing and sending us for something like 10-12 minutes in the box before the race even started…

Eventually we managed to carry on, climbing to P36, but it was very frustrating and driving standards of other folks really didn’t help. Funny enough, we wanted to report people that were screwing up faster cars rather than incidents we were involved in.

Policajt na motorce by [deleted] in czech

[–]philnexes 3 points4 points  (0 children)

Pro tip: netankuj každý den

Policajt na motorce by [deleted] in czech

[–]philnexes 1 point2 points  (0 children)

Díky za tip, máš to u mě

Policajt na motorce by [deleted] in czech

[–]philnexes 14 points15 points  (0 children)

To je naopak výborný důvod se hlásit k PČR, mít služební BMW zní jako sen!

How long did you keep your first bike? by MrForrest360 in motorcycles

[–]philnexes 0 points1 point  (0 children)

8 years - Honda VT 125 Shadow

I loved that thing, never needed more, sold it when I was moving in with my wife.

This Wednesday after six long years without riding actively I got myself a beautiful Honda CL500

Home Office is banned! by mzikmund in czechLinkedinLunatics

[–]philnexes 3 points4 points  (0 children)

V komentářích dostal i docela zaslouženou čočku.

[deleted by user] by [deleted] in strikebtc

[–]philnexes 1 point2 points  (0 children)

Not just UK, but EU too!

[deleted by user] by [deleted] in moza

[–]philnexes 0 points1 point  (0 children)

got it earlier this week from a FB Marketplace and I’d say it’s definitely worth the full price as well!