Building a highly performant photosearch with Elasticsearch, Docker, and ReactJS
JavaScript CSS HTML
Switch branches/tags
Nothing to show
Pull request Compare This branch is 38 commits ahead of sandeep:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
indexer
public
src
.gitignore
README.md
docker-compose.yml
package-lock.json
package.json
yarn.lock

README.md

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/)