The project is about a small REST-API, which can be used to search with multiple search engines at the same time.
At the moment the route /api/search/?query=Test
can be used to search for a query and the ranking from the different
search engines can be compared:
{
"total": 10,
"data": [
[
{
"link": "https://www.test.de/",
"displayLink": "www.test.de",
"title": "Stiftung Warentest",
"searchEngineName": "Google"
},
{
"link": "https://www.test.de/",
"displayLink": "https://www.test.de",
"title": "Stiftung Warentest - Aktuell auf test.de",
"searchEngineName": "Bing"
}
],
...
]
}
In the current state the search engines the following search engines are available: Google, Bing. It's easily possible to add additional search engines.
Getting up and running is as easy as 1, 2, 3.
-
Check your Ruby version
ruby -v
The ouput should start with something like
ruby 2.6.6
If not, install the right ruby version using rbenv (it could take a while):
rbenv install 2.6.6
-
Install your dependencies
cd path/to/multi-search bundle install
-
Copy the
config/search_engines.yml.dist
toconfig/search_engines.yml
and add the needed config options for the search engines. -
Start your app
rails s
or
puma -p 3000