https://github.com/albert-gonzalez/express-autocomplete
Server side Autocomplete example with Express.js, Elasticsearch and Docker
https://github.com/albert-gonzalez/express-autocomplete
autocomplete docker elasticsearch expressjs nodejs
Last synced: 4 months ago
JSON representation
Server side Autocomplete example with Express.js, Elasticsearch and Docker
- Host: GitHub
- URL: https://github.com/albert-gonzalez/express-autocomplete
- Owner: albert-gonzalez
- Created: 2016-12-17T19:24:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-12-18T10:05:32.000Z (over 9 years ago)
- Last Synced: 2025-01-20T23:18:29.915Z (over 1 year ago)
- Topics: autocomplete, docker, elasticsearch, expressjs, nodejs
- Language: JavaScript
- Size: 1.22 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express Autocomplete Server
Server side Autocomplete example with Express.js, Elasticsearch and Docker. Frontend side done with vue.js and Foundation. The example game list is from [GiantBomb](http://www.giantbomb.com/)
## Install
* clone this repo
* `cd name-of-the-project-folder`
* Run the containers with `docker-compose up`
* Create the elasticsearch schema and load the documents with `elasticsearch/script/init.sh`
* Build the frontend app with `docker-compose exec node npm run build`
* open `http://localhost:8888` in the browser to try the example
## Server Endpoints
* **/api/load**: Load the documents from the file node/app/data/games.json
* **/api/autocomplete**: Search in the elastic index
* **/**: Autocomplete example page