{"id":14983670,"url":"https://github.com/codevate/restaurant-search-example","last_synced_at":"2025-04-10T19:02:35.646Z","repository":{"id":91317073,"uuid":"71286155","full_name":"Codevate/restaurant-search-example","owner":"Codevate","description":"A companion project for our blog post on Elasticsearch's completion suggester.","archived":false,"fork":false,"pushed_at":"2017-10-11T14:20:22.000Z","size":58,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-24T16:43:49.791Z","etag":null,"topics":["doctrine-orm","elasticsearch","elasticsearch-php","elasticsearch-queries","elasticsearch5","php","restaurant-search","symfony-application","symfony2"],"latest_commit_sha":null,"homepage":"https://www.codevate.com/blog/14-implementing-search-as-you-type-autocomplete-with-elasticsearch-and-symfony","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Codevate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-18T19:57:56.000Z","updated_at":"2019-12-21T23:18:16.000Z","dependencies_parsed_at":"2023-03-13T17:48:04.240Z","dependency_job_id":null,"html_url":"https://github.com/Codevate/restaurant-search-example","commit_stats":{"total_commits":7,"total_committers":3,"mean_commits":"2.3333333333333335","dds":0.5714285714285714,"last_synced_commit":"10232546b2894b6107ee41796b77e00e57d04edb"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Frestaurant-search-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Frestaurant-search-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Frestaurant-search-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codevate%2Frestaurant-search-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codevate","download_url":"https://codeload.github.com/Codevate/restaurant-search-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248279196,"owners_count":21077406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["doctrine-orm","elasticsearch","elasticsearch-php","elasticsearch-queries","elasticsearch5","php","restaurant-search","symfony-application","symfony2"],"created_at":"2024-09-24T14:07:45.597Z","updated_at":"2025-04-10T19:02:35.611Z","avatar_url":"https://github.com/Codevate.png","language":"PHP","readme":"# Restaurant Search\n\nA companion project for our blog post on Elasticsearch's completion suggester.\n\n## Getting started\n\nInstall dependencies:\n\n```\ncomposer install\nbower install\n```\n\nCreate the database, setup the schema, and load the fixtures:\n\n```\nphp app/console doctrine:database:create\nphp app/console doctrine:schema:update --force\nphp app/console doctrine:fixtures:load\n```\n\n## Docker\n\nBuild and run the containers:\n\n```\ndocker-compose build\ndocker-compose up -d\n```\n\nAdd `restaurant-search.dev` to your hosts file:\n\n```bash\n# Unix only: use this command to get the right IP, OSX binds to localhost\ndocker network inspect restaurantsearch_default | grep Gateway\nsudo sh -c 'echo \"127.0.0.1 restaurant-search.dev\\n\" \u003e\u003e /etc/hosts'\n```\n\nUpdate `parameters.yml` to use the networked containers:\n\n```yaml\nparameters:\n    database_host: db\n    # ...\n    elasticsearch_host: elk\n```\n\nInstall dependencies, create the database schema, and populate Elasticsearch:\n\n```\ndocker-compose exec node bower install\ndocker-compose exec php bash\n  composer install\n  sf doctrine:schema:update --force\n  sf doctrine:fixtures:load\n```\n\n### Usage\n\n- \u003chttp://restaurant-search.dev:81\u003e to visit the Symfony app.\n- \u003chttp://restaurant-search.dev:5602\u003e to visit Kibana (the \"Dev Tools\" side-menu option has replaced Elastic Sense).\n- Logs for Symfony and Nginx are in `docker/logs`.\n- `docker-compose down` when you're finished.\n\n## About Codevate\n\nCodevate is a specialist [UK mobile app development company](https://www.codevate.com/) that builds cloud-connected software. This repository was created for a blog post about a [custom web application development](https://www.codevate.com/services/web-development) project and was written by Chris Lush.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Frestaurant-search-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodevate%2Frestaurant-search-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevate%2Frestaurant-search-example/lists"}