This is documentation to setup and run autocomplete application. Commands to run are provided in quotes
Docker Container is creating image for PHP 7.3, Nginx, Mysql
First thing is to copy provided folder
Open a terminal in provided folder and make sure your directory contains dockerFile
cp .env.example .env
To build docker image you need to run following command
docker-compose buildImage shall be created with the name of test-app:v1. After successful build you need to run with following steps
docker-compose up -d
docker exec -it app php artisan key:generate docker exec -it app php artisan migrate docker exec -it app php artisan db:seed
Once both commands run succesfully. Access your application at http://localhost
curl http://localhost/api/users/d
This command shall return upto 5 records having "d" character in them. "d" can be replaced by any string you want to search.
docker exec -it app php artisan test