Git Product home page Git Product logo

spacex-1's Introduction

This repository contains my solution to a coding exercise that is part of the selection process for software engineering interns at SpaceX. The exercise specification calls for a web application that plots NASA ground station coordinates on an interactive map.

screenshot

The back end is implemented in Ruby using the Sinatra microframework. The server hosts the static files for the HTML/CSS/JS interface and connects to NASA's SOAP web service to access ground station coordinates. The coordinates are transformed into JSON and asynchronously loaded by the front end interface.

This exercise was completed on Mac OS X 10.7.2 using Ruby MRI 1.9.3 but it should be portable across operating systems and Ruby implementations.

Setup instructions

  1. Install Ruby, if necessary
  2. Install Bundler, if necessary: gem install bundler
  3. Clone the repository: git clone git://github.com/dylanvee/spacex.git
  4. Change directory into your clone of the repository
  5. Install the dependencies: bundle install
  6. Start the server: foreman start
  7. Open http://localhost:5000 in your browser

I would be happy to host a live demo of the project for a short period of time if that would be more convenient.

A note about reverse geocoding

The specification noted that each station's marker image should be a flag icon corresponding to the country in which the station is located. This requires the use of a reverse geocoding service, which translates latitude/longitude coordinates into human-readable addresses. However, I encountered extremely aggressive rate limits when attempting to use the Google Maps reverse geocoding API, so aggressive that I couldn't resolve more than a few coordinate pairs in a minute. I initially wrote the code such that the reverse geocoding calls would take place in parallel on the back end for performance reasons, but even moving these calls to the client-side JavaScript did not mitigate the API restrictions. Therefore, while both my server- and client-side geocoding versions are accessible in the git repository, I have chosen to remove this functionality from the final product.

spacex-1's People

Contributors

dylanvee avatar

Watchers

 avatar  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.