Compiling Stargate

Jeff Davies
4 min readMay 27, 2021

I recently found myself in the position to compile and deploy Stargate, an open-source project from DataStax (full disclosure, I am a DataStax employee). During this process, I discovered many sharp edges in the process and so I thought I’d share my tips to smooth the road for anyone else that needs to compile Stargate but is new to the project.

What is Stargate?

Stargate is an open-source project that provides API support for documents, REST and GraphQL for Cassandra databases. If you’ve worked with Cassandra you’re already familiar with the cqlsh command line interface. However, if you’re an application developer that needs to integrate an application with a Cassandra database, you’d much rather do it through a nice API layer. I needed a REST interface for my Amazon EC2 Cassandra instance, so Stargate was the logical choice.

Getting the Stargate Source Code

Like many open source projects, the Stargate project is hosted by Github. Just point your browser to https://github.com/stargate/stargate. Alternatively, if you already have git installed on your local machine, just enter the command:

git clone https://github.com/stargate/stargate.git

Getting the source is the easy part. Compiling it was a different challenge. On the Mac, Stargate requires JDK 1.8…

--

--

Jeff Davies

Long time software engineer, software architect, technical evangelist and motorcycle enthusiast.