Code Monkey home page Code Monkey logo

imagemapper's Introduction

README

Upload images and see where they've been accessed from!

Check it out on Heroku: http://imagemapper.herokuapp.com/

Quick summary:

  • Styles: Sass / bourbon / neat / refills
  • JS: Google Geocoder / jQuery / refills
  • CanCanCan for authorization
  • Gon to store event objects in window.gon
  • AWS SDK / Papertrail for storing images on S3
  • Figaro for local dev config
  • Devise for users
  • Client-side event tracking with Google Geocoder (switched from server-side initially using geocoder gem)
  • http://ipinfo.io/ for retrieving IP lat/long

Simulate Events

From the image page that you want to test:

$.get("http://ipinfo.io/some.ip.to.test", function(response) {
  console.log(response);
  $.ajax({
    url: window.location + "/update",
    method: "post",
    data: {
      ip: response.ip,
      lat: response.loc.split(",")[0],
      lon: response.loc.split(",")[1]
    }
  });
}, "jsonp");

i.e. http://ipinfo.io/8.8.8.8

TO DO

  • Write tests!
  • Improve styling!
  • Try a slick d3 map instead of the standard Google Map

imagemapper's People

Watchers

James Cloos avatar Naseem Makiya 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.