Best thing since sliced cake.
Prerequisites
- MySQL 8+ database
- PHP 8+
- Composer
Create a database with the structure in structure.sql.
Copy .env.sample
into .env
and fill in the proper values.
Install Composer dependencies.
Run the server:
composer run-script start
Or run the tests:
composer test
The tests can be run directly on the mysql database or in memory. You can enable this by setting the environment variable WTS_DB_IN_MEMORY
to 1.
The pipeline runs the tests, as well as Code Sniffer and rudimentary validation on the Composer configuration.