Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honzahommer/ipnfo
IP geolocation web server.
https://github.com/honzahommer/ipnfo
geoip heroku nodejs pm2
Last synced: 2 days ago
JSON representation
IP geolocation web server.
- Host: GitHub
- URL: https://github.com/honzahommer/ipnfo
- Owner: honzahommer
- License: mit
- Created: 2016-11-28T05:59:09.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T06:11:16.000Z (25 days ago)
- Last Synced: 2024-10-30T07:59:02.418Z (9 days ago)
- Topics: geoip, heroku, nodejs, pm2
- Language: JavaScript
- Homepage: https://ipnfo.herokuapp.com
- Size: 1.96 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ipnfo
[![npm version][npm-image]][npm-url]
[![npm download][downloads-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Greenkeeper badge](https://badges.greenkeeper.io/honzahommer/ipnfo.svg)](https://greenkeeper.io/)> IP geolocation web server.
## Install & Running
### Linux host (postinstall not works on Windows)
```bash
git clone https://github.com/honzahommer/ipnfo.git && \
cd ipnfo && \
npm install && \
npm start
```### PM2 (Node.js process manager)
```bash
git clone https://github.com/honzahommer/ipnfo.git && \
cd ipnfo && \
npm install && \
pm2 startOrRestart ecosystem.config.js
```### Docker
```bash
docker run -d -p 3000:3000 --restart=always --name=ipnfo honzahommer/ipnfo
```### Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
## Tests
```bash
npm test
```## Endpoints
```bash
curl localhost:3000
curl localhost:3000/8.8.8.8
curl localhost:3000/8.8.8.8/hostname
```## License
[MIT](LICENSE)
[npm-image]: https://img.shields.io/npm/v/ipnfo.svg
[npm-url]: https://npmjs.org/package/ipnfo
[travis-image]: https://img.shields.io/travis/honzahommer/ipnfo/master.svg
[travis-url]: https://travis-ci.org/honzahommer/ipnfo
[downloads-image]: https://img.shields.io/npm/dm/ipnfo.svg