Git Product home page Git Product logo

nasanomics's Introduction

nasanomics

code challenge for integrating data from two different APIs


Instructions:

  • hit data.nasa.gov and beta.data.worldbank.org
    • do not download any datasets
  • only look at data from 2008 - 2010
  • use the data to answer the questions
    • use other APIs if necessary
    • answers should be in the following format:

Q: How many records are in the dataset? A: 45,716

  • ignoring irrelevant data is okay (for now..)
  • use Python 3 and any libraries you feel are of use

Usage:

  • clone the repo
  • run make venv (to create the virtualenv)
  • activate the virtual env (e.g. source venv/bin/activate)
  • run make install
  • run make dev-server to demo on your machine
    • if you have any secrets, put them in a .env file at the project root like so:
      • NASA_APP_TOKEN=thisisanapptoken...
      • NASA_SECRET_TOKEN=thisisasecret...
    • be sure you have a redis instance up and running (e.g. $ redis-server)
    • make shell to sandbox ideas
    • travelling to the /questions endpoint will show all questions
    • travelling to the /answers/<year> will show pertinent data
  • run make dev-deploy to demo on a debian/jessie64 box
    • nginx fields http requests and forwards them to a uwsgi app server hosting a Flask app
    • go to localhost:8080 to access the app
    • make clean gets rid of everything
    • vagrant ssh to poke around the VPS, but you shouldn't need to :)

nasanomics's People

Contributors

withtwoemms avatar

Watchers

James Cloos avatar  avatar

nasanomics's Issues

/answers/<year> route is slow af

API calls are made serially at the moment. This leads to 504 timeouts from nginx. Consider async or concurrent firing and subsequent caching of requests.

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.