albert-gonzalez / express-autocomplete

Server side Autocomplete example with Express.js, Elasticsearch and Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

About

Server side Autocomplete example with Express.js, Elasticsearch and Docker


Languages

Language:JavaScript 85.6%Language:Vue 11.1%Language:CSS 2.0%Language:Shell 1.3%