A system designed to assist with the process of setting up, testing and streaming devices for the 2023 parliament elections in Bulgaria.
This software includes modules for devices, sections and infrastructure management, as well as monitoring capabilites for both the infrastructure and streams, devices and sections.
- Clone this repository:
git clone ... - Run
composer installin the root of the project - this will install server side dependencies - Run
composer post-installin the root of the project - this will install client side dependencies, as well as create a config file and prompt you for a database config and populate the database
- Open
public/statuschecker.phpin your browser to check that the system is configured properly and that all server requirements are met - Open
public/in any modern browser
- Run
composer toolsto install all needed development tools - Run
composer phpstanto perform a static analysis on the code before pushing - Run
composer psalmto perform additional static analysis on the code before pushing - Run
composer phpcsto perform a coding style check before pushing (PSR-12) - Run
composer testto run all configured tests on your installation
Use scripts\deploy.php or complete the following steps manually:
- Make sure DEBUG is set to FALSE in the .env file
- Set STATUS_CHECKER_USER and STATUS_CHECKER_PASS in the .env file
- Change SIGNATUREKEY and ENCRYPTIONKEY to new values (32 symbols)
- Encrypt the passwords in the database using
scripts/passwords_encrypt.php - Make sure ENVCACHE is set to TRUE in the .env file and run
scripts/cache_env.phpto skip parsing the .env file on each request
Use utf-8 without BOM for all files. Also make sure to use LF (instead of CRLF), use 4 spaces for indentation (not tabs). Adhere to the Development section of this file - run composer test, composer phpstan, composer phpcs and composer test and correct any errors before pushing any changes.
European Union Public Licence