Connecting Elassandra to NodeJS and React

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.

Installation

Install React

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
cd elassandra-demo
npm…


Setting up Elassandra

Why this tutorial

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…

Ryan Quey

I am a freelance Full Stack Data Engineer. Let me know if you have a project you need help with! www.ryanquey.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store