Demo of ElasticSearch usage with Pagy (https://github.com/ddnexus/pagy)
Search for 'random1', 'random2' or 'random3' to search through notes including those strings randomly. Or for 'some', 'common' or 'text' which are included into every note.
- Run
docker-compose run --rm web 'bundle install && rails db:reset'
- Run
docker-compose up
- Open http://localhost:3000/
- Have ElasticSearch and PostgreSQL installed.
- Configure environment variables APP_DATABASE_HOST, APP_DATABASE_USER, APP_DATABASE_PASSWORD, APP_ELASTICSEARCH_HOST and APP_ELASTICSEARCH_PORT with proper values.
- Run
bundle install && rails db:reset
. - Run
rails s
. - Open http://localhost:3000/