C
C#2y ago
malkav

❔ The search for information

So I've been struggling to find a decent source or topic somewhere on how to write your own framework. I know it probably requires a lot more knowledge than I have, but I would still like to read up on it. There is most likely a difference between various frameworks. So questions like "What kind of framework" and "What is the goal of the framework" come to mind. Answering those is relatively simple at this point in time. I'd like to build a .NET/ ASP.NET framework like Blazor, but combined with its own database driven CMS. So like Orchard maybe? And instead of using .razor or .liquid I'd like to add my own .[extension] files to them. The idea is to make a component based web app framework that can build from a ModelViewController base to a static app, or server hosted. That's the questions of what kind, and what is the goal. But my question, or discussion topic, would be where to find good sources to read up on the how, and where to begin if you would like to create your own framework. The second question I have, would be what a decent "convention" would be on the structure of files, and the organization of it all. I know these are probably two questions that can be discussed separately but they do align eventually.
6 Replies
Denis
Denis2y ago
This will require you to write extensions for Visual Studio, VS Code, or maybe even JetBrains Rider, for your web framework to be supported This is necessary to process your special files, and generate the desired static website output I once asked a similar, if not identical question, as your second one... and the answer is It Depends ™️ just as any other project, you need figure out your needs and structure everything as you need You might want to look into architectures, e.g., clean architecture, vertical slice architecture, hexagonal architecture, CQRS.... I don't believe there will be a tutorial you can follow...but a great resource would to literally go to GitHub and look at the source code for ASP.NET Core And see what's there and how it works maybe look at Blazor that will be a solid starting point But if we go back to your point... Are you sure you want to build a whole new framework just to build a CMS? A CMS is built on top of a framework Frameworks in general are an abstract set of tools you use to build something concrete, be it hello world or a full blown CMS
malkav
malkavOP2y ago
@Denis you're absolutely right, but my idea is to write something akin to Orchard CMS (which is its own framework with the CMS being custom to that framework
SuperBrain
SuperBrain2y ago
What you want boils down to - building your own customizable CMS. IMO, that is not a framework. Frameworks work on a lower level.
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
malkav
malkavOP2y ago
I mean it's a bit of both though. My own web framework, that works together with my own CMS
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server