Skip to content

An example that shows how you can integrate Cassandra with Play Framework

Notifications You must be signed in to change notification settings

calvinlfer/Play-Framework-Cassandra-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An Example with Play Framework and Cassandra (Phantom)

This is an example REST API showing how to hook together Play Framework and Cassandra (using Phantom). Phantom has been isolated to the repository interpreter.

See the quill branch for a Quill backed repository

The phantom branch also has pagination which is not implemented in the Quill branch.

This project was created using giter8:

sbt new playframework/play-scala-seed.g8

Cassandra setup (development)

Keyspace

CREATE KEYSPACE persons WITH REPLICATION = {
	'class': 'SimpleStrategy',
	'replication_factor': 1
};

Table

CREATE TABLE persons.person_info (
	id UUID,
	gender TEXT,
	student_id TEXT,
	first_name TEXT,
	last_name TEXT,
	PRIMARY KEY (id)
);

About

An example that shows how you can integrate Cassandra with Play Framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages