https://github.com/tadghh/meidemo
https://github.com/tadghh/meidemo
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tadghh/meidemo
- Owner: tadghh
- Created: 2024-10-31T06:41:47.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-11-29T09:28:54.000Z (7 months ago)
- Last Synced: 2025-01-31T23:44:11.493Z (5 months ago)
- Language: Ruby
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Setup
This repo was created to demo the installation of Meilisearch and Rails 7 - [Article](https://tadgh.dev/blog/mei-blog-post)
## Made With
- Ruby 3.3.5
- Node 23
- Rails 7.2## Docker
```sh
git clone https://github.com/tadghh/meidemo.git;
cd ./meidemo/;
docker build . -t mei_search_rails:demo;
docker run -p 3000:3000 mei_search_rails:demo;
# To exit container SIGTERM * 3 (crtl+c)
```# Local Initialization
## DB
```sh
sudo -u postgres psql -c "CREATE USER msearch_db_user WITH PASSWORD 'msearch_password';"
sudo -u postgres psql -c "ALTER USER msearch_db_user CREATEDB;"
```## Meilisearch Server
```sh
curl -L https://install.meilisearch.com | sh
```## Project
```sh
git clone [email protected]:tadghh/meidemo.git;
bundle install;
yarn install;
yarn build;
rails db:create;
rails db:migrate;
# once Meilisearch has been downloaded and configured, then you can run the seed file (rails db:seed)
```