Skip to content

lafave/cohort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instacohort

A simple Rails app which uses elasticsearch aggregations to perform cohort analysis on user and order data.

Setup

PostgreSQL

Description: create db, run migrations, seed data into postgreSQL.
Required services running: postgreSQL

bundle exec rake db:setup
Elasticsearch

Description: Copy orders from postgreSQL into elasticsearch.
Required services running: postgreSQL, elasticsearch

bundle exec rake elasticsearch:import_orders
bundle exec rake elasticsearch:import_users

Query Explanation

Below is a diagram of the bucketing strategy used to calculate cohorts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages