apache2 contains apache configuration
src contains yii2 application source files
The minimum requirement by this project template that your Web server supports PHP 5.6.0.
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this project depencies using the following command:
$ composer install
$ docker build .
Start the container
$ docker-compose up -d
You can then access the application through the following URL:
http://127.0.0.1:8080
NOTES:
- Minimum required Docker engine version
17.04
for development (see Performance tuning for volume mounts) - The default configuration uses a host-volume in your home directory
.docker-composer
for composer caches
Tests are located in tests
directory. They are developed with Codeception PHP Testing Framework.
By default there are 3 test suites:
unit
functional
acceptance
Tests can be executed by running
$ php src/vendor/bin/codecept run
The command above will execute unit and functional tests. Unit tests are testing the system components, while functional tests are for testing user interaction. Acceptance tests are disabled by default as they require additional setup since they perform testing in real browser.