Movie search engine made as a recruitment task
Follow these simple steps
git clone git@github.com:RyuuKodex/movie-search-engine.gitFirst things first you have to copy the development environment template. It' located in .devcontainer, I'd reccomend
to leave it there and create a symbolic link.
ln -s ./etc/envs/compose.dev.yaml .
mv compose.dev.yaml compose.override.yamlNow we'll use docker to build our image locally, with local architecture:
docker compose buildIt may take few seconds, when it's completed proceed with running the container:
docker compose up --detachRemember that you have installed the vendors in an image, however while creating container you've replaced built app
folder with empty one (repository has no vendor folder intentionally). So, we have to proceed once again with app
configuration:
docker compose exec app bash -ce "
composer install
chown -R $(id -u):$(id -g) .
"Now you're all set, you can visit the localhost with port 80, you should see the Symfony default application web page.
GET /api/movies/search?algorithm=<algorithm>
List of algorithms:
- random
- startsWithW
- moreThanOneWorddocker compose up -ddocker compose exec app bashdocker compose down --remove-orphansdocker compose exec app composer run-lint-fixdocker compose exec app composer run-phpstan-analysisUse the command below to run unit tests.
docker compose exec app composer run-unit-tests