Connecting ReactiveBase to local ElasticSearch DB #2019
-
Hi! I'm currently following the book search tutorial here: https://docs.appbase.io/docs/reactivesearch/v3/overview/reactivebase/ I've referenced this issue discussion: #104 This is what I've changed: However, when I'm trying to get the data from each item to display on my localhost:3000 React page, nothing shows up. Is anyone able to help? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@kklhuang There are two options over here:
OR
So, you need to setup the reactivesearch-api binary. The easiest way to do this is via Docker. You can choose the docker compose file to use from here (comes in various combinations), or in the rare case where you're wanting to contribute to the project as well, here are the instructions to build and run from source. Once your binary is setup, then point the FE app's URL to it, e.g. |
Beta Was this translation helpful? Give feedback.
@kklhuang There are two options over here:
enableAppbase
tofalse
and your config should work as is. That's it!OR
enableAppbase
(we should name this better), the query generation will happen on the server-side. It requires use of reactivesearch-api binary, which acts as a gateway to Elasticsearch plus also handles server-side query generation. I highly recommend this for production usage so you're not exposing DSL on the frontend.So, you need to setup the reactivesearch-api binary. The easiest way to do this is via Docker. You can choose the docker compose file to use from here (comes in various combinations), or in the rare case where you're wanting to contribute to the pr…