1 # Developing Nominatim-UI
3 [![Continuous Integration](https://github.com/osm-search/nominatim-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/osm-search/nominatim-ui/actions/workflows/ci.yml)
7 Uses [Svelte](https://svelte.dev/) framework,
8 [Leaflet](https://leafletjs.com/) for map interaction,
9 [Bootstrap](https://getbootstrap.com/) for layout styling.
11 The user interface used to be included in the geocoder. Thus the
12 first version avoided being a redesign and still uses some of the
13 same configuration values. Version 2 was a full refactor using
14 Svelte. Version 3 added theme and easier configuration.
18 ## Building the frontend
20 * Install dependencies
26 * After you change files in `src` directory run
31 which will start a webserver on port 9880 and auto-reloads
32 whenever you edit files. Configuration in `rollup.config.js`.
36 The `test/` setup uses [Mocha](https://mochajs.org/) to run tests. Tests use [Puppeteer](https://pptr.dev/) to control a Google Chrome headless browser and evaluate with [Assert](https://nodejs.org/api/assert.html).
39 * Run integration test suite (configuration in `.mocharc.js`)
43 API_ON_SAME_PORT=1 yarn test
46 Setting API_ON_SAME_PORT simulates having both the API and UI on the same server
47 port. That's a rare setup but something https://nominatim.openstreetmap.org/ does
50 To run a single test file only
53 yarn run rollup -c && yarn run mocha test/details.js
56 * Run syntax linter (configuration in `.eslint.js`)
65 1. Update version number in `package.json` file
67 2. Update `CHANGES.md` file
69 3. Commit your changes: `git add... `, `git commit ...`, `git push ...` etc
71 4. Tag release: `git tag THE_VERSION_NUMBER`, `git push --tags`
73 5. Create release on https://github.com/osm-search/nominatim-ui/releases
74 This (a triggered Github Action) will run `yarn build` and add the `dist/build/bundle.*` files.