- public/index.html: markup-only entry, classic <script> tags, no inline styles/handlers. - public/css/: base, overview, form, modals, install, responsive stylesheets. - public/js/: namespace bootstrap + main wiring (event handlers, init). - public/manifest.webmanifest + icons/icon.svg + sw.js: installable, offline app shell. - src/Domain: sectionMap, scoring, orderParser (pure, no I/O). - src/Application: state, persistence, screens, inspection form, order overview, photo service, XML import, export, PWA registration, install screen. - src/Infrastructure: IndexedDB, geolocation, utils, seed CSV, CSV upload parser. Runs from file:// (PWA gated off) and from http(s)/localhost (PWA fully active). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| _docs | ||
| public | ||
| src | ||
| .gitignore | ||
| README.md | ||
README.md
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/:
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— live productie (auto-deploy bij merge)develop— staging (auto-deploy bij merge)- feature branches — nieuwe functionaliteit, merge via PR in
develop
Zie _docs/ voor verdere projectdocumentatie.