Skip to content

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

Notifications You must be signed in to change notification settings

rohittm/photosearch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Searcher

In Progress The Search Engine being made using React.js

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

Installing node canvas dependency can be tough So follow this:

xcode-select --install # this is important
npm install node-gyp -g
brew install giflib cairo libjpeg giflib pixman
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig
OTHER_CFLAGS=-I/usr/local/include npm install canvas

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

Then run node index.js <path to photos>

Part 3:

Again in the top level, run npm start

This will start the react app in (http://localhost:3000/)

Here is the keynote presentation of why and how I did this project (with screenshots): https://www.RohitMotwani.com/presentation.key

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 87.6%
  • CSS 10.5%
  • HTML 1.9%