Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

ajant/LTVPlus

Repository files navigation

Backend Developer – Assignment

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.

Solution based on HTML, JavaScript & CSS

Prerequisites

No Prerequisites

Installing

No Installation required

Run

Load [app_root]/simple/index.html page in the browser

Solution based on PHP, HTML, JavaScript & CSS

Prerequisites

List of tools for development environment setup in which the app was tested:

- Docker

Links are available in Built With section below.

Installing

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 up

Edit your local hosts file (in *nix systems location is usually /etc/hosts) and add following line

127.0.0.1 ltvplus.local

Login into development container

docker exec -it ltvplus bash

Navigate to [app_root] inside container

cd /var/www/html

Install dependencies

composer install

Run

Navigate to this url

API Documentation

Navigate to this url

Running the tests

In order to run Integration tests invoke following steps.

Start development machine from [app_root] directory if not already running

docker-compose up

Login into development container

docker exec -it ltvplus bash

Navigate to [app_root] inside container

cd /var/www/html

Run Integration tests

vendor/bin/phpunit -c test/Integration/phpunit.xml test/Integration/

Coding quality tests

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.xml

After running the command, all potential code smells should be displayed (if no output is shown after running the commands, code is passing all checks)

Built With

Versioning

SemVer is used for versioning. For the versions available, see the tags on this repository.

Authors

  • Aleksandar Jovanovic

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published