HN Search powered by Algolia
This is the Rails 5 application providing HN Search. It's leveraging react on the frontend, algoliasearch-rails for the search and uses wkhtmltoimage to crawl+render thumbnails.
We love pull-requests :)
Setup
# clone the repository git clone https://github.com/algolia/hn-search cd hn-search # install dependencies bundle install # setup credentials cp config/database.example.yml config/database.yml # feel free to edit, default configuration is OK for search-only cp config/application.example.yml config/application.yml # feel free to edit, default configuration is OK for search-only # setup your (sqlite3) database bundle exec rake db:migrate # start contributing enjoying Guard (watchers, livereload, notifications, ...) bundle exec guard # done! open http://localhost:3000
Code
If you want to contribute to the UI, the only directory you need to look at is app/assets . This directory contains all the JS, HTML & CSS code.
Deployment
To deploy, we're using capistrano and therefore you need SSH access to the underlying machines and run from your own computer:
bundle exec cap deploy
... continue reading