]> git.openstreetmap.org Git - nominatim-ui.git/blob - README.md
Readme: use localhost, not 0.0.0.0 for copy&paste instruction
[nominatim-ui.git] / README.md
1 # Nominatim-UI
2
3 Debugging user interface for [Nominatim](https://nominatim.org/)
4 ([source](https://github.com/openstreetmap/Nominatim/)) geocoder.
5 The frontend runs standalone as website and will requests data
6 from a separate Nominatim API (either on the same server or
7 remote).
8
9 Uses [jQuery](https://jquery.com/) for browser DOM interaction,
10 [handlebar](http://handlebarsjs.com/) templates to build pages,
11 [leaflet](https://leafletjs.com/) for map interaction,
12 [bootstrap](https://getbootstrap.com/) for layout styling.
13
14
15 ## Background
16
17 The user interface used to be included in the geocoder. Thus the
18 first version avoid being a redesign and still uses some of the
19 same configuration values. For simplicity it's not a single
20 page application (SPA) written in a framework though it could
21 be if complexity grows.
22
23
24 ## Starting the frontend
25
26 You can open the `dist` directory in your browser.
27
28 You can start a simple HTTP webserver ([Big list of http static server one-liners](https://gist.github.com/willurd/5720255)).
29
30 ```
31 php -S localhost:8000 -t dist
32 ```
33
34
35 ## Configuration
36
37 In `dist/config.js` you will find configuration options. The first
38 you want to doublecheck is the `Nominatim_API_Endpoint` URL.
39
40
41 ## Building the frontend
42
43 * Install dependencies
44
45    ```
46    yarn install
47    ```
48
49 * After you change files in `src` directory
50
51    ```
52    ./build.sh
53    ```
54
55 ## License
56
57 The source code is available under a GPLv2 license.