jadiagaurang / IP2GeoApp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:MIT License


Languages

Language:JavaScript 50.7%Language:EJS 41.0%Language:CSS 7.0%Language:Dockerfile 1.3%