Answer the question
In order to leave comments, you need to log in
Writing the first CMS. How is it better?
Hello. I thought about writing a CMS for personal development, for my personal website that will live for a long time and be updated as needed. Most likely it will be more like a blog but with additional. functionality.
The general plan
Articles (blog, news)
Media (photos, videos)
Comments from guests on articles
and writing an admin panel for this whole thing.
As you can see, the requests are not large, but I want to do it correctly so that later in the future I don’t get stuck in my own mess with source codes.
I have already written the first option, it works according to a simple principle;
There is an entry point -> then there is a handler that collects a page from blocks (head, content, footer) and returns the result to the user.
most of the code in the content block for displaying news and other little things.
After reading a bunch of articles on Habré and other forums, the arguments of many commentators on similar issues, including on the Toaster, everything "mixed up" in my head and an unrealistically complex picture lined up with the development of CMS.
Those. before I write a CMS, I need to "shovel" thousands of source codes of various CMS, study them, work with them for at least a year to understand how to write my system correctly?
Really, to write even the simplest CMS for personal basic needs, you have to study a bunch of other things to build an accurate picture of its development?
Questions themselves:
How to make a simple diagram for your engine?
What do I need for this and how to create at least a basic CMS architecture?
ps I am well aware of the availability of various frameworks that simplify the development process dozens of times for my tasks, but the interest is to write it myself. usually freimworks are used in my opinion for custom projects and I'm not in a hurry, but I already want to start developing humanly.
Thanks everyone for the replies! Much has become clear.
Answer the question
In order to leave comments, you need to log in
Those. before I write a CMS, I need to "shovel" thousands of source codes of various CMS, study them, work with them for at least a year to understand how to write my system correctly?
The simplest CMS takes 8 lines of code.
Take it and modify it to suit your needs.
all popular CMS have long come to a framework-like structure, can your CMS be used as a framework?
It is necessary to identify the main goals and plans for the development of CMS. If for myself and more in the direction of the convenience of development by programmers, this can be one direction something like CMF, if customer orientation is needed, then this will be a different development plan. Commercial, open source. What load will it withstand. All this should ultimately affect the architecture of the system.
From my own experience, if for yourself:
1. Take a framework, finish it to fit your needs, form the first version of the CMS
2. Take the project for money, implement it on your CMS. Analyze the architecture, errors, omissions. Create a plan to adjust the functionality of the CMS.
3. Take the project, deploy it on your CMS, implement adjustments.
and so on, all the while analyzing the system and improving it.
Here's what I would pay attention to: modularity, composer, work with the database, roles and access rights, multi-layer architecture
I had the same idea before. It is better to take a ready-made cms and rework it to fit your needs. For example, cut off the functional))
Writing the first CMS. How is it better?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question