Skip to content

RyuuKodex/movie-search-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Morele.net recruitment task

About The Project

Movie search engine made as a recruitment task

Built With

Getting Started

Installation

Follow these simple steps

Clone API repository

git clone [email protected]:RyuuKodex/movie-search-engine.git
  1. Copy the development environment template: ln -s ./etc/envs/compose.dev.yaml . mv compose.dev.yaml compose.override.yaml
  2. Run docker compose build --pull --no-cache to build fresh images
  3. Run docker compose up (the logs will be displayed in the current shell)
  4. Run docker compose exec app bash -ce " composer install chown -R $(id -u):$(id -g) . "
  5. Now you're all set, you can visit the localhost with port 80, you should see the Symfony default application web page.

Endpoint

  GET /api/movies/search?algorithm=<algorithm>
  
  List of algorithms:
  - random
  - startsWithW
  - moreThanOneWord

Commands

Start the project

docker compose up -d

Connect to app container

docker compose exec app bash

Stop project

docker compose down --remove-orphans

Run tests in the container

php bin/phpunit --do-not-cache-result --testsuite unit

Run code lint in the container

vendor/bin/php-cs-fixer fix --allow-risky=yes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published