cassandra-ninja-module

Parent pom for all Fizzed maven projects

License

License

Categories

Categories

Cassandra Data Databases Ninja User Interface Web Frameworks
GroupId

GroupId

com.fizzed
ArtifactId

ArtifactId

cassandra-ninja-module
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

cassandra-ninja-module
Parent pom for all Fizzed maven projects
Project Organization

Project Organization

Fizzed, Inc

Download cassandra-ninja-module

How to add to project

<!-- https://jarcasting.com/artifacts/com.fizzed/cassandra-ninja-module/ -->
<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>cassandra-ninja-module</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.fizzed/cassandra-ninja-module/
implementation 'com.fizzed:cassandra-ninja-module:1.0.1'
// https://jarcasting.com/artifacts/com.fizzed/cassandra-ninja-module/
implementation ("com.fizzed:cassandra-ninja-module:1.0.1")
'com.fizzed:cassandra-ninja-module:jar:1.0.1'
<dependency org="com.fizzed" name="cassandra-ninja-module" rev="1.0.1">
  <artifact name="cassandra-ninja-module" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.fizzed', module='cassandra-ninja-module', version='1.0.1')
)
libraryDependencies += "com.fizzed" % "cassandra-ninja-module" % "1.0.1"
[com.fizzed/cassandra-ninja-module "1.0.1"]

Dependencies

compile (2)

Group / Artifact Type Version
com.datastax.cassandra : cassandra-driver-core jar 3.10.2
org.cognitor.cassandra : cassandra-migration jar 2.1.2

provided (1)

Group / Artifact Type Version
org.ninjaframework : ninja-core jar 6.2.2

test (4)

Group / Artifact Type Version
org.ninjaframework : ninja-test-utilities jar 6.2.2
org.hamcrest : java-hamcrest jar 2.0.0.0
junit : junit jar 4.12
org.mockito : mockito-core jar 3.6.28

Project Modules

There are no modules declared in this project.

Cassandra Plus by Fizzed

Maven Central

Fizzed, Inc. (Follow on Twitter: @fizzed_inc)

Overview

Utilities and framework integrations for Java and Cassandra. Includes an integration of Cassandra with the Ninja Framework.

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

<dependency>
    <groupId>com.fizzed</groupId>
    <artifactId>cassandra-ninja-module</artifactId>
    <version>1.0.0</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 = 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 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/

License

Copyright (C) 2020 Fizzed, Inc.

This work is licensed under the Apache License, Version 2.0. See LICENSE for details.

com.fizzed

Fizzed, Inc.

Helping companies launch and grow their mobile, web, and data products

Versions

Version
1.0.1
1.0.0