Since not all locations provided in the assignment were required to demonstrate the application, only first 4 were converted, using this app. There are two solutions of the Assignment.
No Prerequisites
No Installation required
Load [app_root]/simple/index.html page in the browser
List of tools for development environment setup in which the app was tested:
- DockerLinks are available in Built With section below.
A step by step series of examples that tell you how to get a development environment running:
From [app_root] directory run machine setup and provisioning
docker-compose upEdit your local hosts file (in *nix systems location is usually /etc/hosts) and add following line
127.0.0.1 ltvplus.localLogin into development container
docker exec -it ltvplus bashNavigate to [app_root] inside container
cd /var/www/htmlInstall dependencies
composer installNavigate to this url
Navigate to this url
In order to run Integration tests invoke following steps.
Start development machine from [app_root] directory if not already running
docker-compose upLogin into development container
docker exec -it ltvplus bashNavigate to [app_root] inside container
cd /var/www/htmlRun Integration tests
vendor/bin/phpunit -c test/Integration/phpunit.xml test/Integration/For code quality PHP CodeSniffer and PHP MessDetector were used.
To run PHP CodeSniffer follow the same steps as with Integration tests except tha last one which is:
vendor/bin/phpcs -s --standard=PSR2 src/To run PHP MessDetector follow the same steps as with Unit tests except tha last one which is:
vendor/bin/phpmd src/ text code-inspections/phpmd-config.xmlAfter running the command, all potential code smells should be displayed (if no output is shown after running the commands, code is passing all checks)
- Debian GNU/Linux 8 (jessie) - Popular linux distribution
- Docker version 17.12.0-ce - Docker is a container technology for Linux
- PHP 7.1 - Popular web programming language
- Composer 1.6.3 - Dependency Manager for PHP
- Silex 2.0 - PHP micro-framework based on the Symfony Components
- PHPUnit 6.5.6 - Unit testing framework for the PHP
- PHP CodeSniffer 3.2.3 - Tool for detecting violations of a defined set of coding standards
- PHP MessDetector 2.6.0 - Tool for detecting possible bugs, suboptimal code, overcomplicated expressions and unused parameters, methods, properties
- Apache 2.4.10 - HTTP Web server
- Aglio/Apiary 2.3.0 - An API Blueprint renderer
SemVer is used for versioning. For the versions available, see the tags on this repository.
- Aleksandar Jovanovic