Simple asyncronous interface to search on GitHub. Built over EventMachine, Sinatra, WebSocket and Redis. It uses handmade background jobs with minimal latency on start (instead of big and slow Sidekiq).
git clone https://github.com/a0s/github-lazy-search.git
cd github-lazy-search
docker build --tag github-lazy-search .
export GITHUB_TOKEN=% YOUR GITHUB TOKEN HERE %
docker docker run --rm -it --env GITHUB_TOKEN=${GITHUB_TOKEN} -p 9000:9000 github-lazy-search
# open http://localhost:9000 in browser
If you have macOS Mojave you may got this on bundle install
:
ld: library not found for -lgcc_s.10.4
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [libffi.la] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
Use LDFLAGS
and PKG_CONFIG_PATH
to override this bug:
brew install libffi
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
bundle install