/photosearch

Building a highly performant photosearch with Elasticsearch, Docker, and AngularJS

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

photosearch

Building a highly performant photosearch with Elasticsearch, Docker, and AngularJS

Read more about this project on my blog

Instructions

Part 1: Search Infrastructure

Prerequisites: Docker and Docker host.

Clone the repo and in the top level run docker-compose up

Part 2: Indexing

Prerequisites: nodejs; node canvas - which requries node-gyp and cairo

In the indexer directory run npm install to set up the dependencies.

Then run node index.js <path to photos>

Part 3:

The photosearchapp folder has a simple angular app which connects to your elasticsearch instance. Be sure to change the server in app.js to point to your instance and to change the photo path in the main.html file.

Licensing information in the LICENSE file