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
- Host: GitHub
- URL: https://github.com/kjenney/smart-search
- Owner: kjenney
- Created: 2022-11-30T02:00:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-24T11:58:06.000Z (over 1 year ago)
- Last Synced: 2025-01-07T20:12:42.598Z (5 months ago)
- Language: Ruby
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`