Skip to content

diogomonica/sinatra_geoip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a very simple sinatra app, built to be run on heroku.

It has only one endpoint: /locate , that returns a JSON with the location of the IP address of the requester (using MAXMIND's free location database).

# Running locally

git clone REPO
bundle install
bundle exec ruby geolocate.rb

# Pushing to your own heroku instance

git clone REPO
cd REPO
heroku create
heroku addons:add newrelic:standard
heroku config:add RACK_ENV=production
git push heroku master

About

Simple IP Geolocation endpoint deployable to heroku

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages