Skip to content

qlimaxx/metrics-analytics-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Development and testing environment

  • Python 3
  • Django 2

How to run the application

Clone the repository and then change directory to the cloned repository.

  1. Setup and active your virtual environment
python3 -m venv venv
source venv/bin/activate
  1. Install Python dependencies
pip install -r requirements-dev.txt
  1. Run the database migrations and load data into the database
python manage.py migrate
python manage.py loaddata metrics
  1. Run the API
python manage.py runserver

API endpoint URL

API use-cases

  1. Show the number of impressions and clicks that occurred before the 1st of June 2017, broken down by channel and country, sorted by clicks in descending order.
  1. Show the number of installs that occurred in May of 2017 on iOS, broken down by date, sorted by date in ascending order.
  1. Show revenue, earned on June 1, 2017 in US, broken down by operating system and sorted by revenue in descending order.
  1. Show CPI and spend for Canada (CA) broken down by channel ordered by CPI in descending order. Please think carefully which is an appropriate aggregate function for CPI.

How to run tests

Run the tests

python manage.py test

TODO

  • Dockerize the application.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages