This is a simple single-page CRUD backoffice, with login, and an encrypted JSON file as database.
This is the list of user/passwords for the backoffice access. You can include multiple users. At least one user is required.
By defautl user name is
admin
with the password12345678
.
define("CREDENTIALS", [
'admin' => '12345678'
]);
This configuration define the label text to name the database entries in the frontend. You can set yor own text to use as label, for the single and plural uses.
By default the entries are named
Items
.
define("ENTRY_LABEL_SINGULAR", "item");
define("ENTRY_LABEL_PLURAL", "items");
This is the web server path to the database json file.
If possible, move the file outside the web served folder to restrict public access to this file.
define("DB_FILE", __DIR__ . "/db.json");
By default the database file is not protected and is accesible by the general public.
To secure its contents, all the data is encrypted with a secret key.
Is recomended that you set your own secret key.
define('ENCRYPT_KEY', 'v[fjV0FhY<d9KZ;hraEUzWVwtdZvE-');