This is a giter8 template for a simple Cassandra project using Scala.
g8 codesolid/cassandra
cd <the_directory_created>
sbt test
- Uses the DataStax Cassandra Driver
- Sets up a test connection and tests some basic database operations in ScalaTest project.
- Uses the TypeSafe Config library for cluster configuration.
- You have Cassandra running on your local machine (or see see src/test/resources/reference.conf to configure Cassandra).
- I've tested this on Scala 2.10.4 and 2.11.2. It was designed to run on 2.11, the fact that it worked on 2.10 surprised me, but don't look a gift horse in the mouth, etc.
- You'll need sbt and giter8 of course.
Enjoy, and check out thes other great giter8 templates as well.