How sean1-git/uc-merced-campus-parking works
Campus Parking is a small sample-data parking dashboard. The user opens the page, the browser loads lot counts from the Python server, and the dashboard computes totals and lets the user inspect a lot from either the list or map. A service worker supports offline use by caching the app shell and the latest counts; a separate browser script handles installation. The README documents the page, styles, and manifest roles, but those files were not sampled, so their relationships are shown only where explicitly documented.
Main entry points: app.js Dashboard logic · sw.js Service worker · app.py HTTP server and API · index.html Page layout and map
Components 13
Data service
- HTTP server and API
app.py - Sample lot data
app.py
Parking dashboard
- Page layout and map
public/index.html - Responsive styles
public/styles.css - Dashboard logic
public/app.js - Availability summary
public/app.js - Lot selection details
public/app.js
Offline and install
- Install and setup
public/pwa.js - Service worker
public/sw.js - App file cache
public/sw.js - Saved count cache
public/sw.js - Install metadata
public/manifest.webmanifest
Other components
- Visitor
Connections 14
- Visitor → Page layout and map: opens
README.md - HTTP server and API → Page layout and map: serves
README.md - HTTP server and API → Sample lot data: returns counts
app.py - Dashboard logic → HTTP server and API: fetches counts
public/app.js - Dashboard logic → Availability summary: calculates totals
public/app.js - Dashboard logic → Lot selection details: renders selection
public/app.js - Page layout and map → Dashboard logic: provides layout
README.md - Page layout and map → Responsive styles: uses styles
README.md - Visitor → Dashboard logic: selects lot
README.md - Install and setup → Service worker: registers
public/pwa.js - Service worker → App file cache: stores app files
public/sw.js - Service worker → Saved count cache: stores counts
public/sw.js - Service worker → HTTP server and API: fetches counts
public/sw.js - Install and setup → Install metadata: installation metadata
README.md