Coder Social home page Coder Social logo

cti_interview_assessment's Introduction

CTI Python interview assessment

How to get it running


  • Download this free geoip database (about 60MB)

  • Extract the mmdb file from the above download and put it in the local directory of main.py

  • Add credentials found in the assessment prompt's PDF to the sample aws.config file and rename it to 'aws.config.json'

  • Start a new virtualenv and install the packages from requirements.txt (assuming python 2.7)

  • Install MySQL locally (I used version 5.7)

  • Create a database, specifically using this command

    CREATE DATABASE cti CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

    Otherwise there will be tons of weird encoding errors that seemed impossible to resolve with python code alone.

  • Setup a local mysql db user "ctiuser" with pass "ctipass" and a database named "cti" to keep it simple. These credentials are already put in db.config.json so you can change it if necessary, but again, just for simplicity. Normally the file would be put into gitignore, but doesn't matter for this project.

  • run python main.py

cti_interview_assessment's People

Contributors

sjqtentacles avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.