Skip to content

IP Location Finder - Geolocation, Rails 4+ Sample project

Notifications You must be signed in to change notification settings

codecube47/IP-Location-Finder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

Installation

git clone https://github.com/vusaalab/IP-Location-Finder.git

rails db:migrate

rails s

Download ip2location ( www.ip2location.com/ ) database to local database

rake ip2location:download_v4

Download ipv6 database to local database

rake ip2location:download_v6

API URL:

http://localhost:3000/api/v1/geolocations/:ip

Example:

IPV4

    http://localhost:3000/api/v1/geolocations/175.157.254.70 

IPV6

    http://localhost:3000/api/v1/geolocations/2601:9:7680:363:75df:f491:6f85:352f

rspec test :

bundle exec rspec spec/controllers

LIVE demo geolocations.herokuapp.com/api/v1/geolocations/175.157.254.70

About

IP Location Finder - Geolocation, Rails 4+ Sample project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published