Skip to content

mat-green/orange-digital

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Orange Digital - Cloud Software Engineer Tech Test

Introduction

Command line application that provides a way to find the top 1000 ranking male names between two give years, i.e. BillyÊbetweenÊ1892ÊandÊ2001, of 1880ÊandÊ 2010.

Execution

Requisites

The following software is needed to execute this application:

Python Virtual Environment

We deploy this application into it's own virtual environment therefore you will need to do the same. Install & Activate the virtualenv (this assumes you are in the root of the application folder using a cli):

    easy_install virtualenv
    mkdir ~/.virtualenvs
    cd ~/.virtualenvs
    virtualenv orange
    source ~/.virtualenvs/orange/bin/activate

Install Python Packages

This assumes you are in the root of the application folder using cli:

    cd src
    while read line; do easy_install -ZU $line; done < src/install-requires.txt
    while read line; do easy_install -ZU $line; done < src/install-test-requires.txt 

Executing Unit Tests

This assumes you are in the root of the application folder using cli:

    cd src
    python setup.py develop
    nosetests

Executing Query

This assumes you are in the root of the application folder using cli. The follow to be executed once to setup the application:

    cd src
    python setup.py develop

The following to be used to find information (assumes you are in the src folder):

    python app/babynames.py [name] [start year] [end year]

Test Cases

  • BillyÊbetweenÊ1892ÊandÊ2001: 202.29
  • JamieÊbetweenÊ1901ÊandÊ1987: 465.41
  • DanielÊbetweenÊ1996ÊandÊ1999: 10.75
  • NeilÊbetweenÊ1957ÊandÊ1983: 185.22
  • JordanÊbetweenÊ1880ÊandÊ2010: 504.76

About

Technical test for Orange Digital

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published