ipnfo

by honzahommer

GitHub Readme.md

ipnfo

npm version npm download Build Status Greenkeeper badge

IP geolocation web server.

Install & Running

Linux host (postinstall not works on Windows)

git clone https://github.com/honzahommer/ipnfo.git && \
cd ipnfo && \
npm install && \
npm start

PM2 (Node.js process manager)

git clone https://github.com/honzahommer/ipnfo.git && \
cd ipnfo && \
npm install && \
pm2 startOrRestart ecosystem.config.js

Docker

docker run -d -p 3000:3000 --restart=always --name=ipnfo honzahommer/ipnfo

Heroku

Deploy

Tests

npm test

Endpoints

curl localhost:3000
curl localhost:3000/8.8.8.8
curl localhost:3000/8.8.8.8/hostname

License

MIT