$ git clone https://github.com/bloodhawk/narrative_analytics.git
$ cd narrative_analytics
$ sbt
> jetty:start
To run requests against the API I recommend using Postman
When the server is spun up; hit the following endpoint to create the database for the API:
POST localhost:8080/analytics-create-db
Endpoints:
POST localhost:8080/analytics?timestamp={millis_since_epoch}&user={user_id}&event={click|impression}
GET localhost:8080/analytics?timestamp={millis_since_epoch}
$ sbt test