/parrotip

Express app that echoes back your IP address.

Primary LanguageJavaScript

Parrot IP

A lightweight Express app that echoes back the request IP.

Format Options

JSON (/)

http://ip.quotaguard.com

$ curl http://ip.quotaguard.com
{"ip":"82.13.87.243"}

Text (/plain)

http://ip.quotaguard.com/plain

$ curl http://ip.quotaguard.com/plain
82.13.87.243

Running Locally

Make sure you have Node.js installed.

$ git clone git@github.com:quotaguard/parrotip.git # or clone your own fork
$ cd parrotip
$ npm install
$ npm start

Your app should now be running on localhost:5000.

Deploying to Heroku

$ heroku create
$ git push heroku master
$ heroku open

Documentation

For more information about using Node.js on Heroku, see these Dev Center articles: