Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/2kabhishek/kicksearch
Elasticsearch Demo with Rails 🔎💎
https://github.com/2kabhishek/kicksearch
demo elasticsearch learning rails ruby searchkick turbo
Last synced: about 2 months ago
JSON representation
Elasticsearch Demo with Rails 🔎💎
- Host: GitHub
- URL: https://github.com/2kabhishek/kicksearch
- Owner: 2KAbhishek
- License: gpl-3.0
- Created: 2023-08-21T06:13:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-12T05:25:00.000Z (over 1 year ago)
- Last Synced: 2024-08-23T20:11:54.043Z (4 months ago)
- Topics: demo, elasticsearch, learning, rails, ruby, searchkick, turbo
- Language: Ruby
- Size: 69.3 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
kicksearch is a simple rails app to demonstrate the usage of Elasticsearch and Searchkik with Rails.
## ✨ Features
- Uses Searchkick for Model data search powered by Elasticsearch
- Uses turbo to render search result data## Setup
### ⚡ Requirements
- rails 7
- a working elasticsearch instance running on port 9200[Follow this tutorial](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html) to install with docker.
You can disable security locally if you want by using [this config](./elasticsearch.yml)
### 🚀 Installation
```bash
git clone https://github.com/2kabhishek/kicksearch
cd kicksearch# Setup elasticsearch config, es01 is the container name here
docker cp ./elasticsearch.yml es01:/usr/share/elasticsearch/config/elasticsearch.yml
```### 💻 Usage
```bash
bundle install
bin/rails db:migrate
bin/rails s
```If you do not see search results, try running `Post.reindex` from rails console.
## Behind The Code
### 🌈 Inspiration
Was integrating elasticsearch for a work project, decided to learn by doing
### 💡 Challenges/Learnings
- Initial setup of elasticsearch with security was a bit tricky
- I learned about Searchkick and Turbo usage.### 🧰 Tooling
- [Dotfiles](https://github.com/2kabhishek/Dotfiles) — Dev Environment
- [nvim2k](https://github.com/2kabhishek/nvim2k) — Personalized Editor### 🔍 More Info
- [gogeo](https://github.com/2KAbhishek/gogeo) — Geocoder demo
- [swaggerize](https://github.com/2KAbhishek/swaggerize) — rswag and swagger api demo
⭐ hit the star button if you found this useful ⭐
Source
| Blog
| More Links
| Other Projects