Prerequirements

This setup uses docker to spin up php 7.3 container

Requirements:

Setting up

1. Building the app

This step will:

  • build images for php container
  • install dependencies for the PHP app

Execute:

./run.sh install

2. Running the app

Execute:

./run.sh dev

Accessing the APP

If All containers are running simply:s

About

This repository contains solutions for technical tasks for MVF interview.

API

API was built using PHP and Lumen + widely supported Github API v3 client:

  • Why Lumen: it's a micro HTTP framework. I chose to go with HTTP in order to build a small RESTful endpoint accessible by the webapp.

This test is for a PHP heavy engineer position, thus PHP was chosen for the solution.

You can find the API Swagger docs in here

Frontend

It's a widely community supported framework, I was also considering Vue but I assume React is more in use with MVF.

Running API Tests

Make sure the docker container is running, then simply:

  1. SSH into the container
docker exec -it awin-service /bin/bash
  1. Execute the command
./vendor/bin/phpunit