- An API who gives insights about countries.
- Python 3
- Elasticsearch
- Flask
- Pandas
# create your virtualenv and then ...
$ git clone git@github.com:kaansan/country-insights.git
$ pip install -r requirements.txt
fire up elasticsearch in a terminal with
$ elasticsearch
with a another terminal type
$ python app.py
for testing api endpoints, start server and type
$ python tests.py
-
http://localhost:port/country/<country_code>
for example, http://localhost:port/country/afg/ # returns insights about afghanistan
-
http://localhost:port/country/<country_code>/population/
for example, http://localhost:port/country/afg/population/ # returns population for afghanistan
-
http://localhost:port/country/all/
for example, http://localhost:port/country/all/ # returns every insight for every country