An open API service indexing awesome lists of open source software.

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

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