Skip to content

IP2Geo is an open-source app to get the Geolocation (Latitude and Longitude) from an IP Address using MaxMind GeoIP2 database.

License

Notifications You must be signed in to change notification settings

jadiagaurang/IP2GeoApp

Repository files navigation

IP2GeoApp

Node.js CI Fly Deploy Docker Image CI Docker pulls

Run in Postman

IP2Geo is an open-source app to get the Geolocation (Latitude and Longitude) from an IP Address using MaxMind's free GeoLite2 databases.

Motivation

Demo

https://ip2geoapp.com/

Installation

npm install
npm update

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout security/private.key -out security/primary.crt -config security/csr.cnf -sha256

Code Example

Prod

npm start

Local/Develop

npm run-script dev

Docker Container

docker pull jadiagaurang/ip2geo-app
docker run -d -p 80:80 jadiagaurang/ip2geo-app

API Reference

curl --location --request GET "https://ip2geoapp.com/api/geoip?ipaddress=8.8.4.4"
curl --location --request POST "http://ip2geoapp.com/api/geoip" --header "Content-Type: application/json" --data-raw "{
    \"ipaddress\": \"1.1.1.1\"
}"

Tests

npm test

License

Please see the license file for more information.

About

IP2Geo is an open-source app to get the Geolocation (Latitude and Longitude) from an IP Address using MaxMind GeoIP2 database.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published