Skip to content

Commit 35d71c5

Browse files
committed
Update
1 parent 805af61 commit 35d71c5

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
This project provides a static web portal to visualize ShakeMap data. It consists of a Bash script to process event data and a frontend (HTML/JS/CSS) to display it.
1717

18+
Version 2 is a redesign that builds on the foundations laid by version 1 (up to `v1.28.0`), originally developed by Dario Jozinović.
19+
1820
## Features
1921
- **Event List**: View all processed ShakeMap events.
2022
- **Search**: Filter events by Start Time, End Time, and Minimum Magnitude.
@@ -181,6 +183,17 @@ Python's simple HTTP server cannot provide the `/data/...` to `data_storage/` fa
181183
- **Map Layers**: configured in `js/app.js` (`initMap` function).
182184
- **Styles**: `css/style.css`.
183185

186+
## Develop
187+
For local development, mount the whole project directory into the container so that changes to HTML/JS/CSS are served live, without rebuilding the image:
188+
189+
```bash
190+
docker run --rm -p 8085:80 -e ENABLE_CRONTAB=true -e SHAKEMAP_ENV=ingv -v $(pwd):/usr/share/nginx/html --name shakemap4-web__container ingv/shakemap4-web
191+
```
192+
193+
Then open `http://localhost:8085` in your browser.
194+
195+
> **Note:** `SHAKEMAP_ENV` selects the environment profile (`ingv`, `eu`, or custom); `ingv` is the default and is shown here only for clarity. When mounting the full project directory, the entrypoint generates `js/config-env.js` locally — this file is gitignored.
196+
184197
## Thanks to
185198
This work has been partially funded by:
186199
- Seismology and Earthquake Engineering Research Infrastructure Alliance for Europe (SERA) project
@@ -190,13 +203,6 @@ This work has been partially funded by:
190203
## Contribute
191204
Thanks to your contributions!
192205

193-
For develop run:
194-
```bash
195-
docker run --rm -p 8085:80 -e ENABLE_CRONTAB=true -e SHAKEMAP_ENV=ingv -v $(pwd):/usr/share/nginx/html --name shakemap4-web__container ingv/shakemap4-web
196-
```
197-
198-
> **Note:** `SHAKEMAP_ENV` selects the environment profile (`ingv`, `eu`, or custom). When mounting the full project directory, the entrypoint generates `js/config-env.js` locally — this file is gitignored.
199-
200206
Here is a list of users who already contributed to this repository: \
201207
<a href="https://github.com/ingv/shakemap4-web/graphs/contributors">
202208
<img src="https://contrib.rocks/image?repo=ingv/shakemap4-web" />

0 commit comments

Comments
 (0)