Skip to content

hexextract/autocomplete

Repository files navigation

This is documentation to setup and run autocomplete application. Commands to run are provided in quotes

Setting up Docker Container:

Docker Container is creating image for PHP 7.3, Nginx, Mysql

Clone Directory provided

First thing is to copy provided folder

Open a terminal in provided folder and make sure your directory contains dockerFile

Setting .env file for laravel project

cp .env.example .env

Build Docker Image

To build docker image you need to run following command

docker-compose build

Image shall be created with the name of test-app:v1. After successful build you need to run with following steps

Starting Docker Image

docker-compose up -d

Setting up laravel users table and some data

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 to confirm responses

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.

run test cases

docker exec -it app php artisan test

About

This is sample code for implementing autocomplete using vue.js and laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors