Public | Automated Build

Last pushed: 3 years ago
Short Description
Short description is empty for this repo.
Full Description

Locations API v3, using the MaxMind free City DB + automatic database upgrades.

Open the project with IntelliJ IDEA 14 with the Python plugin installed.


sudo docker build --rm -t mikaelhg/locations3-api .


curl http://localhost:5000/address/
curl -H "X-Forwarded-For:" http://localhost:5000/address/current


sudo docker run -it --rm -p 5000:5000 mikaelhg/locations3-api 

Run with DB update interval of 6 hours:

sudo docker run -it --rm -p 5000:5000 -e UPDATE_HOURS=6 mikaelhg/locations3-api 

When developing locally, just create a python virtualenv, run pip install -r requirements.txt,
and execute for the application, or for the functional tests.

You can also run the unit tests in the Docker container:

sudo docker run -it --rm mikaelhg/locations3-api python

This product includes GeoLite2 data created by MaxMind, available from
<a href=""></a>.

Docker Pull Command
Source Repository