Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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 🔎💎

Awesome Lists containing this project

README

        

kicksearch


License


People


Stars


Forks


Watches


Last Updated

Elasticsearch Demo with Rails 🔎💎

kicksearch in action


kicksearch in action

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
| Twitter
| LinkedIn
| More Links
| Other Projects