Skip to content

boyzalius/nba_task_VISMA

Repository files navigation

This is a task for a VISMA company utilizing theapiguy's freenba API :)

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 which should be located in here test/

How to begin?

First check that your platform has these requirements

  • Ubuntu or other linux based OS
  • Docker 20+

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

Firstly, let's install dependencies

//THOSE ARE ALREADY INSTALLED IN THIS REPO, BUT YOU CAN STILL EXECUTE THE COMMAND IF YOU MAY LIKE

P.S. If you are lacking permissions for a command, just type sudo before "docker-compose" or add docker to a group of users

docker-compose run --rm composer install

How to run tests?

docker-compose run --rm phpunit

How to run the program?

Execute help command with program documentation

docker-compose run --rm cli

List all NBA teams

docker-compose run --rm cli teams

List NBA teams by input keyword

docker-compose run --rm cli teams boston

List NBA games by input date (date format YYYY-MM-DD) as an example: 2021-05-16

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

Or by specifying filter (as an example: date)

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

Or by choosing a seasonal year (as an example: 2022)

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

Releases

No releases published

Packages

No packages published

Languages