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

https://github.com/kjenney/smart-search

Search with Rails 7
https://github.com/kjenney/smart-search

Last synced: 3 months ago
JSON representation

Search with Rails 7

Awesome Lists containing this project

README

        

# smart-search

A full-text search of a MySQL database thru a web interface.

* Rails 7.0.2
* Percona MySQL

# Import CSV

Place one of more CSV files at the root of this repo. These will be imported into the database using a Rake task.

## Create

You can use either docker-compose or nerdctl compose

```
nerdctl compose build
nerdctl compose up -d
```

Wait for the image to build and the import of the CSV to complete (if any) and the Rails server to start by looking at the container logs:

```
nerdctl compose logs rails -f
```

## Searching

Navigate to http://localhost:3001/search/ and put in as many tags as you like after the `/` each separated by another `/`. `not` can be used to do an inverse lookup.

http://localhost:3001/search/tag1/tag2/tag3

http://localhost:3001/search/tag1/tag2/nottag3

## Destroy

`nerdctl compose down`