https://github.com/a0s/github-lazy-search
WebSockets with Sinatra and handmade background jobs
https://github.com/a0s/github-lazy-search
Last synced: 2 months ago
JSON representation
WebSockets with Sinatra and handmade background jobs
- Host: GitHub
- URL: https://github.com/a0s/github-lazy-search
- Owner: a0s
- License: mit
- Created: 2019-08-12T13:29:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-03-17T01:58:58.000Z (over 3 years ago)
- Last Synced: 2025-04-12T06:37:51.833Z (over 1 year ago)
- Language: Ruby
- Homepage: https://github.com/a0s/github-lazy-search
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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).
# How it works

# How to run in Docker
```bash
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
```
# Know issues
## libffi.la
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:
```bash
brew install libffi
export LDFLAGS="-L/usr/local/opt/libffi/lib"
export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"
bundle install
```