simple frontend app for comparing apples
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app style tweaks Oct 16, 2018
bower_components icon improvements Feb 23, 2016
style style tweaks Oct 16, 2018
.gitignore commit bower_components Oct 19, 2015
.lgtm Add LGTM config Jun 8, 2016
README.md Remove Mapzen Search endpoint 👻 Mar 1, 2018
bower.json icon improvements Feb 23, 2016
index.html update fonts and icons Oct 16, 2018
sync.sh init Jun 26, 2015

README.md

install

> [sudo] npm install -g bower;
> bower install;
> python -m SimpleHTTPServer 8000

advanced usage

you can use getEndpoints() and setEndpoints() in your browser Console tab to change which hosts are being queried, or use resetEndpoints() to reset to defaults.

your endpoint preferences are stored in localStorage, so they will persist between page loads.

compare against localhost

you can update the endpoints to point to localhost; in your browser Console tab type:

> getEndpoints()

[
  "https://api.geocode.earth",
  "http://another-pelias.com"
]
> setEndpoints([
  "https://api.geocode.earth",
  "http://another-pelias.com",
  "http://localhost:3100"
])

MainController.js:112 saved to localStorage

commit dependencies to github

please commit your bower_components/* to github so they are available on the github CDN.

deploy to github.io

simply open a new PR against gh-pages

note it can take several minutes before the gh-pages content appears at http://pelias.github.io/compare

from the command-line

if you have push access you can deploy directly from the command-line:

➜  compare git:(master) git fetch

From github.com:pelias/compare
 * [new branch]      gh-pages   -> origin/gh-pages
➜  compare git:(master) git checkout gh-pages

Branch gh-pages set up to track remote branch gh-pages from origin.
Switched to a new branch 'gh-pages'
➜  compare git:(gh-pages) git merge master

Merge made by the 'recursive' strategy.
 README.md                         | 12 +++++++++++-
 app/controllers/MainController.js |  7 ++++---
 2 files changed, 15 insertions(+), 4 deletions(-)
➜  compare git:(gh-pages) git push origin gh-pages

Counting objects: 1, done.
Writing objects: 100% (1/1), 232 bytes | 0 bytes/s, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:pelias/compare.git
  64a4d79..0356274  gh-pages -> gh-pages