Skip to content

A giter8 generator for a working Akka HTTP API server persisting to Cassandra with the Phantom DSL

License

Notifications You must be signed in to change notification settings

navicore/akka-http-phantom.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codacy Badge Build Status

A g8 Template for an Akka HTTP API Server persisting objects with Phantom for Cassandra

PREREQ

  • sbt >= 13.16

USAGE

G8 will prompt you for details like your project name and package name

In a terminal shell, enter:

sbt new navicore/akka-http-phantom.g8 

cd into the resulting directory and sbt run

See generated the README.md for how to build, configure, and connect to Cassandra

Notes About The Generated Example

  • The initial example entity is stored denormalized
  • primary key for one model is a v4 UUID
  • primary key for a second model is name and clustering key is datetime
  • CRUD works - see generated examples dir
  • basic time series lookups (last 'n' occurrences of 'name')
  • could be modified to be an append-only event-sourcing backend

Graphiz

DEVELOPING

While changing the template, test using something like:

sbt new file:///Users/navicore/git/navicore/akka-http-phantom.g8

About

A giter8 generator for a working Akka HTTP API server persisting to Cassandra with the Phantom DSL

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages