How atlasz2/projekt-labor works
The repository is a white-label tourism QR-points platform: visitors explore local content, scan station QR codes, earn server-validated points and rewards, and compete on leaderboards; staff manage that content in a web admin. The README documents the mobile app’s offline capabilities and the server’s callable workflows. Mobile implementation sources and several function handlers were not included in the tree or excerpts, so those nodes use the supported enclosing directory and only documented relationships are shown.
Main entry points: index.js Callable and event handlers · mobile_app Explore and play · App.jsx Admin portal · Stations.jsx Content management
Components 21
Visitor app
- Explore and play
mobile_app
Content administration
- Admin portal
admin/src/App.jsx - Staff access
admin/src/context/AdminAuthContext.jsx - Town selection
admin/src/context/ProjectContext.jsx - Content management
admin/src/pages/Stations.jsx - Trip planning
admin/src/pages/Trips.jsx - Analytics and dashboard
admin/src/pages/Analytics.jsx - User administration
admin/src/pages/Users.jsx - Route requests
admin/src/utils/routeService.js
Server workflows
- Callable and event handlers
functions/index.js - QR redemption
functions/lib/redeem-core.js - Account and GDPR
functions/lib/gdpr-core.js - Hiking routes
functions/lib/hiking-route-core.js - Trip analytics
functions/lib/analytics-core.js - Event notifications
functions/lib/notification-builder.js
Firebase services
- Firebase client
admin/src/firebaseConfig.js - Firestore
- Firebase Storage
Other components
- Tourist
- Admin staff
- Routing providers
Connections 26
- Tourist → Explore and play: uses
- Explore and play → Firestore: reads content
- Explore and play → Callable and event handlers: calls redemption
- Callable and event handlers → QR redemption: dispatches
functions/index.js - QR redemption → Firestore: validates and writes
- Explore and play → Firestore: caches offline
- Admin staff → Admin portal: uses
- Admin portal → Staff access: provides access
admin/src/App.jsx - Admin portal → Town selection: provides town scope
admin/src/App.jsx - Staff access → Firebase client: authenticates with
admin/src/context/AdminAuthContext.jsx - Town selection → Firestore: manages projects
admin/src/context/ProjectContext.jsx - Content management → Firestore: manages content
admin/src/pages/Stations.jsx - Trip planning → Firestore: manages trips
admin/src/pages/Trips.jsx - Trip planning → Route requests: requests routes
admin/src/pages/Trips.jsx - Route requests → Callable and event handlers: calls hikingRoute
admin/src/utils/routeService.js - Callable and event handlers → Hiking routes: uses route parser
functions/index.js - Hiking routes → Routing providers: queries providers
- Analytics and dashboard → Callable and event handlers: requests analytics
- Callable and event handlers → Trip analytics: dispatches
functions/index.js - Analytics and dashboard → Firestore: reads metrics
admin/src/pages/Analytics.jsx - User administration → Callable and event handlers: requests user actions
- Callable and event handlers → Account and GDPR: dispatches privacy actions
functions/index.js - Callable and event handlers → Firestore: reads and writes
functions/index.js - Content management → Firebase Storage: uploads photos
- Event notifications → Firestore: observes new events
- Callable and event handlers → Event notifications: builds notifications
functions/index.js