/narrative_analytics

Basic analytics API

Primary LanguageScala

Narrative Analytics

Build & Run

$ git clone https://github.com/bloodhawk/narrative_analytics.git
$ cd narrative_analytics
$ sbt
> jetty:start

Interacting with the Server

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}

Testing

$ sbt test