This is a Task Managment application using the Laminas MVC layer and module systems.
Edit the file .env to configure database parameters.
The schema Database is on path /data/schema.sql, always the container is start, the mysql read this file an run migrations.
Build and start the image and container using:
$ docker-compose build
$ docker-compose run ws composer install --ignore-platform-reqs --no-interaction
$ docker-compose upAfter build and start the application, access:
localhost:8080
-
Once testing support is present, you can run the tests using:
$ docker compose run -u root ws composer test
If you need to make local modifications for the PHPUnit test setup, copy
phpunit.xml.dist to phpunit.xml and edit the new file; the latter has
precedence over the former when running tests, and is ignored by version
control. (If you want to make the modifications permanent, edit the
phpunit.xml.dist file.)
-
Once psalm support is present, you can run the static analysis using:
$ docker compose run -u root ws composer static-analysis