ipnfo
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
Tests
npm test
Endpoints
curl localhost:3000curl localhost:3000/8.8.8.8curl localhost:3000/8.8.8.8/hostname