In part one, we set up Elassandra using Docker and looked at our data via Kibana and the command line. Now, let’s take a look to see what it looks like to connect Elassandra to a basic NodeJS Express app, React and Searchkit. Searchkit provides an easy way to request and display Elasticsearch data in the a React app, which fits our use case perfectly.
First, let’s setup React. I’m using Node 10 and nvm, but you use what works for you :). We’re going to do it the easy way today, using create-react-app:
npx create-react-app elassandra-demo
I’ve used both Elasticsearch and Cassandra separately before, but have never had a chance to use Elassandra before, and wanted to give it a try. Accordingly, this is written not from the perspective of an expert, but from the perspective of someone who is just picking it up for the first time.
Hopefully this demonstrates something to you as it did to me, namely just how easy it is to get these tools up and running together.
In part one, we’ll setup Elassandra, and in part two, we’ll connect a simple NodeJS server with React and Searchkit to provide a…