canidlogic / zenlib

Simple library management system
MIT License
0 stars 0 forks source link

Add config system #1

Closed canidlogic closed 3 years ago

canidlogic commented 3 years ago

There should be a bootstrap PHP script that requests all the configuration information and then uses this to generate a parameters file. The parameters file can then be provided to other configuration scripts to generate the needed files.

We need a configuration script that takes a parameters file and uses it to generate SQL commands to completely initialize a SQLite database appropriately.

We need a configuration script that takes a parameters file and uses it to generate a PHP configuration script that can then be imported by the utilities PHP module. The utilities module should check for the existence of this configuration script and stop displaying an error message that configuration needed if the generated configuration script is not present.

Once we have this system, we can redeploy code to synchronize it properly with GitHub.