X-Git-Url: https://git.openstreetmap.org./nominatim-ui.git/blobdiff_plain/6a455ffa0bd1cfea8337ee31867848f5719b47fc..fcf8ac94b59711b8c1cd0b043a70d52dd71f0029:/README.md diff --git a/README.md b/README.md index e3bf77c..1cfa5e7 100644 --- a/README.md +++ b/README.md @@ -1,26 +1,57 @@ # Nominatim-UI -Frontend for [Nominatim](http://nominatim.org/) ([source](https://github.com/openstreetmap/Nominatim/)) geocoder. +Debugging user interface for [Nominatim](https://nominatim.org/) +([source](https://github.com/openstreetmap/Nominatim/)) geocoder. +The frontend runs standalone as website and will requests data +from a separate Nominatim API (either on the same server or +remote). -Preview version. See TODO file. +Uses [jQuery](https://jquery.com/) for browser DOM interaction, +[handlebar](http://handlebarsjs.com/) templates to build pages, +[leaflet](https://leafletjs.com/) for map interaction, +[bootstrap](https://getbootstrap.com/) for layout styling. -http://handlebarsjs.com/ +## Background -## Installation +The user interface used to be included in the geocoder. Thus the +first version avoid being a redesign and still uses some of the +same configuration values. For simplicity it's not a single +page application (SPA) written in a framework though it could +be if complexity grows. -1. run build -``` -./build.sh -``` +## Starting the frontend + +You can open the `dist` directory in your browser. -2. start any webserver to serve static files, e.g. +You can start a simple HTTP webserver ([Big list of http static server one-liners](https://gist.github.com/willurd/5720255)). ``` -php -S localhost:8000 -t dist +php -S 0.0.0.0:8000 -t dist ``` + +## Configuration + +In `dist/config.js` you will find configuration options. The first +you want to doublecheck is the `Nominatim_API_Endpoint` URL. + + +## Building the frontend + +* Install dependencies + + ``` + yarn install + ``` + +* After you change files in `src` directory + + ``` + ./build.sh + ``` + ## License The source code is available under a GPLv2 license.