https://github.com/fizzed/cassandra-plus
Utility modules and framework integrations for Java and Cassandra
https://github.com/fizzed/cassandra-plus
Last synced: about 1 month ago
JSON representation
Utility modules and framework integrations for Java and Cassandra
- Host: GitHub
- URL: https://github.com/fizzed/cassandra-plus
- Owner: fizzed
- Created: 2020-12-29T20:58:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-29T19:22:16.000Z (4 months ago)
- Last Synced: 2025-03-27T03:51:21.409Z (about 2 months ago)
- Language: Java
- Size: 5.86 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Cassandra Plus by Fizzed
============================================[](https://maven-badges.herokuapp.com/maven-central/com.fizzed/cassandra-plus)
[Fizzed, Inc.](http://fizzed.com) (Follow on Twitter: [@fizzed_inc](http://twitter.com/fizzed_inc))
## Overview
Utilities and framework integrations for Java and Cassandra. Includes an integration
of [Cassandra](https://cassandra.apache.org/) with the [Ninja Framework](https://github.com/ninjaframework/ninja).## Ninja Framework
Ninja Framework module for Cassandra. Will help provide connectivity to Cassandra,
establish your sessions, and support for Cassandra database migrations.### Setup
Add the cassandra-ninja-module dependency to your Maven pom.xml
```xml
com.fizzed
cassandra-ninja-module
1.0.2```
In your `conf/Module.java` file:
```java
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:
```java
#
# 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 = true
```If you intend on migrations, by default this module will search your classpath
for any `.cql` files in the `db.cassandra` package.### Demo
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](https://github.com/fizzed/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 ninjaOnce running, point your browser to http://localhost:18080/
## License
Copyright (C) 2025 Fizzed, Inc.
This work is licensed under the Apache License, Version 2.0. See LICENSE for details.