Skip to content

acidtib/freegeoliteip

Repository files navigation

freegeoliteip

Trying to recreate the good old days of freegeoip

by the way, this project is still a work in progress

Installation

git clone https://github.com/arubinofaux/freegeoliteip.git
cd freegeoliteip
shards install

Usage

Prep local enviroment file

cp .env-example .env

Start the services

docker-compose up --build

visit http://localhost:8080

API

Return the geolocation of the visiting computer, the source IP address of the connection.

curl --request GET --url http://localhost:8080

Return the geolocation of the specified IP address.

curl --request GET --url http://localhost:8080/104.16.181.15

Development

TODO: Write development instructions here

Contributing

  1. Fork it (https://github.com/arubinofaux/freegeoliteip/fork)
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors