Skip to content

Bruno-H-Terto/Search-Term

Repository files navigation

Search Terms

A lightweight search analytics app built with Ruby on Rails. It allows users to perform real-time searches while storing their queries for later analysis. Perfect for understanding search behavior in a simple and effective way.

Link of deploy: Search Term

Features

  • Real-time search

  • Persistent search term logging

  • Basic search analytics (e.g., most recent queries)

  • Background Jobs

Tech Stack

  • Ruby on Rails 7

  • PostgreSQL – for storing search terms

  • Redis – optional, for caching or real-time broadcasting

  • Hotwire (Turbo + Stimulus) – for reactive UI without JS frameworks

  • Docker – containerized setup

  • Render – for deployment

  • RSpec and Capybara – for tests

  • Rubocop – for lint

  • SimpleCov – for coverage

  • SolidQueue – for async Jobs

Setup

$ git clone https://github.com/Bruno-H-Terto/Search-Term.git
$ cd Search-Term
$ source alias.sh
$ dcub

Once the server starts, it will be available at http://0.0.0.0:3000

Tests

$ dce rspec

Lint

$ dce rubocop

Usage

Visit the homepage and enter a term into the search field. After 1 second each query is saved to the database. Recent searches can be displayed dynamically using Turbo and Background Jobs.

Analytics

This app stores every search term and allows you to:

  • List the most recent queries

  • Potentially aggregate data (e.g., most frequent searches)

Routes

/ root_path

alt text

Author

Github: Bruno Herculano

About

A lightweight search analytics app built with Ruby on Rails. It allows users to perform real-time searches while storing their queries for later analysis. Perfect for understanding search behavior in a simple and effective way.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors