Fizzed, Inc. (Follow on Twitter: @fizzed_inc)
Utilities and framework integrations for Java and Cassandra. Includes an integration of Cassandra with the Ninja Framework.
Ninja Framework module for Cassandra. Will help provide connectivity to Cassandra, establish your sessions, and support for Cassandra database migrations.
Add the cassandra-ninja-module dependency to your Maven pom.xml
<dependency>
<groupId>com.fizzed</groupId>
<artifactId>cassandra-ninja-module</artifactId>
<version>1.0.2</version>
</dependency>In your conf/Module.java file:
package conf;
import com.fizzed.cassandra.ninja.NinjaCassandraModule;
import com.google.inject.AbstractModule;
public class Module extends AbstractModule {
@Override
protected void configure() {
install(new NinjaCassandraModule());
}
}In your conf/application.conf file:
#
# cassandra
#
cassandra.contact_points = localhost:19042,localhost:19043
cassandra.username = root
cassandra.password = test
cassandra.keyspace = ninja_dev
cassandra.validate_at_start = true
cassandra.migrate.enabled = trueIf you intend on migrations, by default this module will search your classpath
for any .cql files in the db.cassandra package.
There is a Ninja app in the demo folder that demonstrates all the functionality
this module provides and it's a simple way to see how it works. This project
uses Blaze to help script tasks. Run the
following in your shell (from the root project directory, not in demo):
java -jar blaze.jar setup
java -jar blaze.jar ninja
Once running, point your browser to http://localhost:18080/
Copyright (C) 2025 Fizzed, Inc.
This work is licensed under the Apache License, Version 2.0. See LICENSE for details.