[agent] init PocketBase backend + Flutter app #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/init-pocketbase-flutter"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Replaces the previous Go+htmx+Leaflet backend with a fresh stack on a feature branch off
flubase:github.com/pocketbase/pocketbasev0.38.1, auto-creates astationscollection on first serve, and runs a*/5 * * * *cron that pullshttps://regieessencequebec.ca/stations.geojson.gzand replaces the collection in a single transaction.listRule/viewRuleare public; writes go through theAppinterface (admin-only).app/): new Flutter project,flutter_map(Leaflet port) + OpenStreetMap tiles, oneMarkerLayerof price-bubble markers per station, and a thin PocketBase REST client inlib/services/pocketbase_service.dart. Web-first, Android-friendly, no third-party state-mgmt yet.main_test.go: covers upstream feed decoding and the price-bucket colour mapping (currently the only Go code; will grow with the data layer).AGENTS.md: build / run / test / style notes for future agents.Why
flubaseis the new base branch;mainis preserved as a reference of the old Go+htmx stack. The old htmx+Leaflet client doesn't compose with how the rest of the agent's projects are shaped (PocketBase on the server, a non-jQuery mobile client), and the data model the legacy app used doesn't match what the Regie's current GeoJSON exposes. PocketBase gives us the REST/Admin surface for free, and Flutter onflutter_mapkeeps the project key-free (no Google Maps) while staying web + Android + iOS-portable.Verification
Web build:
Notes
github.com/polen/prixdugaz(lowercase, matches the NixOS-deploy import path; the legacymainbranch usedPolensky/...).pubspec.lockIS committed (per.gitignorerationale for apps).polen/*trust boundary is unchanged.