The challenge the project was built on consists of a command line application that requests a movie name as a parameter to then be able to get information about it.
- PHP 8.1
Provide instructions on how to setup project locally. Example Installation/Setup and Running.
Follow these steps to setup the development environment...
- Run
composer install
- cd into
src
- Run
cp AppSettings.php.example AppSettings.php
- Set AppSettings.php's
OMDB_API_KEY
const with your OMDb API Key
- Initialize Docker
- cd into the project's root directory
- Run
docker compose up -d
- Run
docker exec -ti php-app sh
- Run
./application.php [movieName]
. In case of wanting to get the full plot add the--fullPlot
flag
Disclaimer: In case of permission denied
error when executing the application.php
file run chmod +x ./application.php
to make it executable.
- OMDb API: API service used for getting the movie information. Fill in this form and then follow the Installation/Setup steps.
- Docker: Download Docker Desktop and then follow the Running steps.