duimstok.prorail.nl/README.md

47 lines
1.4 KiB
Markdown

# Duimstok-inspecties Bovenbouw
ProRail duimstok-inspecties voor wissels, overwegen en spoor. MVP / PWA —
vanilla HTML, CSS, JS, IndexedDB, service worker.
## Project-structuur
```
01_Applicatie/
├── public/ frontend assets (open public/index.html direct)
│ ├── index.html
│ ├── manifest.webmanifest
│ ├── sw.js service worker
│ ├── icons/
│ ├── css/
│ └── js/
├── src/ applicatielogica (DDD-lagen)
│ ├── Domain/
│ ├── Application/
│ └── Infrastructure/
└── _docs/ projectdocumentatie
```
## Uitvoeren
**Snel testen (geen PWA-functionaliteit):**
Dubbelklik `public/index.html`. Werkt vanaf `file://`.
**Volledige PWA (service worker + installatie):**
Start een webserver vanuit `01_Applicatie/` en open de app via `http://localhost:<poort>/public/`:
```bash
python -m http.server 8000
# open http://localhost:8000/public/
```
Service worker, installatieknop en offline-caching werken alleen vanaf
`http(s)://` of `localhost` — niet vanaf `file://`.
## Branches
- `master` &mdash; live productie (auto-deploy bij merge)
- `develop` &mdash; staging (auto-deploy bij merge)
- feature branches &mdash; nieuwe functionaliteit, merge via PR in `develop`
Zie `_docs/` voor verdere projectdocumentatie.