The easiest way to create a website

I would like to share my own bike.

image

The key to success in any profession in our time is the maximum optimization of the production process. But there are things that have become the standard in a particular area. Working with them requires a long study and long practice. One of these web development weaknesses is the database. Maintenance and administration makes a huge overhead in the meantime, in the vast majority of projects, the database functionality remains unclaimed. How attractive is it to combine the simplicity of working with files, the flexibility and functionality of relational databases. How do you want to reduce the creation of a database backup to a simple copy of a single file.



At the time of the installation of the site, time for it freezes. Most sites will never be updated. Software update becomes a non-trivial matter which is easier to postpone every time than to start the update and spend a week searching for update errors and explaining to the customer the reasons for downtime. If the kernel code or part of the files has been modified during operation, updating becomes impossible.

The ease of installation, maintenance and updating of the site became the task of our further development. To make the website launching process easy even for a person who does not know anything about databases, connection ports and access passwords. Reduce the update by copying one file and creating a backup before pressing the copy paste buttons.

Two solutions were excellent for solving this problem. The sqlite database was chosen as the data storage. This database combines the maximum ease of use and all the advantages of a complete database.

The work with the files of the portal system was simplified by packing the base cms system in php phar archim. The deployment of the site was reduced to copying one file to the project directory. Updating the entire portal system boiled down to replacing one single file with an updated version of cms.

Since sqlite does not require authorization, a configuration file is not required. Together with the two specified files, we need a directory where all downloaded images of the site are stored as well as a .htaccess file that will show the web server where to start the download from.

It came down to four files in the project folder. One database file where the files will be stored, one cms file, .htaccess file and directories with full access for downloading files.

At the first login, the system will ask you to enter the administrator login and password. The person who entered the password becomes an administrator and gets pondy access to all sections of the admin system.

Creating pages comes down to choosing an address for the page. Entering the address of the newly created page, the administrator will be prompted to create a new page with one click. After creation, to edit it, just click on the pencil in the upper right chat of the page to edit it.

The file system is made based on the unionFS file system in which the system considers the file system several levels at once. The first highest priority is the file system level of the project. A file located in the shared directory whose path coincides with the system will be more priority than the one in the phar archive. To change the operation of any file, it is enough to place its modified copy in the same way as in the phar archive. At the same time, he begins to work immediately. Similarly, the site adds its own templates, its own models, and even the main kernel file. To change, just place index.php in the project directory next to index.phar.

This solution can be called the simplest installation of the file system of all of them. To do this, just upload three files to the hosting directory.

Index.phar - cms
.htdb - database file (full access)
.htaccess - file redirection to the executable file of the engine
/ include / images Directory for the uploaded files (full access)

Something like this should look like a file system.

The address on github is github.com/mpak2/mpak.su

You can go to the admin panel here http://phar.mpak.su/admin user / password admin / admin

Unfortunately, as part of the comment, it is not possible to voice all the topics of interest. You can find contacts for communication in the higher link.

Also popular now: