This web app does a fuzzy search on the ISI list of developing countries for 2017. On the left, the Guardian API returns a list of news article links and on the right side, the OpenLayers API zooms into that country on a world map.
After cloning the repo, go to the map-my-article folder and start a web server, e.g. on MacOS you can use the built-in SimpleHTTPServer:
... $ python -m SimpleHTTPServer 8000
then open a browser at http://localhost:8000
- map: OpenLayersJS 4.3.2
- dropdown menu: Chosen.js jQuery library, with Prism.js syntax highlighter
- article search: Guardian API
- HTML/CSS3
The map is meant to zoom to the country that has been searched for, every time a new search is performed. The name of that country is retrieved from the search value and implements the OpenLayers Animation.
not much styling but fully functional 😃
Wish List: ability to sort articles by date or filter by tag
This project is a static frontend site, so development is behaviour-driven rather than having been unit-tested.
-
As a user, I want to get a list of developing country from a drop-down list when I type a letter in the search box.
-
As a user, I want to get a list of Guardian articles when I search for a county.
-
As a user, I want to see a map of the country I searched for on the right hand side after I click search.