https://github.com/calvinlfer/play-framework-cassandra-example
An example that shows how you can integrate Cassandra with Play Framework
https://github.com/calvinlfer/play-framework-cassandra-example
cassandra get-quill phantom play-framework playframework quill scala
Last synced: 7 months ago
JSON representation
An example that shows how you can integrate Cassandra with Play Framework
- Host: GitHub
- URL: https://github.com/calvinlfer/play-framework-cassandra-example
- Owner: calvinlfer
- Created: 2017-05-06T05:23:51.000Z (almost 9 years ago)
- Default Branch: phantom
- Last Pushed: 2018-03-02T05:04:50.000Z (almost 8 years ago)
- Last Synced: 2025-07-11T23:54:49.164Z (7 months ago)
- Topics: cassandra, get-quill, phantom, play-framework, playframework, quill, scala
- Language: Scala
- Homepage:
- Size: 27.3 KB
- Stars: 7
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/calvinlfer/Play-Framework-Cassandra-Example/tree/quill) 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](http://www.foundweekends.org/giter8):
```sbt new playframework/play-scala-seed.g8```
## Cassandra setup (development)
### Keyspace
```cql
CREATE KEYSPACE persons WITH REPLICATION = {
'class': 'SimpleStrategy',
'replication_factor': 1
};
```
### Table
```cql
CREATE TABLE persons.person_info (
id UUID,
gender TEXT,
student_id TEXT,
first_name TEXT,
last_name TEXT,
PRIMARY KEY (id)
);
```