Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.16 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.16 KB

Visma assessment task

Introduction

Hi, this is a skeleton app for your assessment. It will help you to deal your task without building the app from the scratch!

How to use it?

  • Implement the business logic under src/ directory
  • Write your unit tests should be located in here test/

How to start?

Platform requirements

  • Ubuntu or other linux based
  • Docker 20+

This program should also work on Windows, but that was not tested.

Firstly, install dependencies

docker-compose run --rm composer install

How to run tests?

docker-compose run --rm phpunit

How to run the program?

Help command with program documentation

docker-compose run --rm cli

List all NBA teams

docker-compose run --rm cli teams

List NBA teams by keyword

docker-compose run --rm cli teams boston

List NBA games by date (date format YYYY-MM-DD)

docker-compose run --rm cli games 2021-05-16

Or by specifying filter

sudo docker-compose run --rm cli games --filter date 2021-05-16

List NBA games by season

sudo docker-compose run --rm cli games --filter season 2022