Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 2.56 KB

README.md

File metadata and controls

74 lines (50 loc) · 2.56 KB

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.