How neptune-life/ticketme3 works
Project type and purpose
• This is a cross-platform (iOS, Android, Web) React Native/Expo application called “TicketMe.”
• It uses Expo Router’s file-based routing in the app/ directory to deliver mobile (admin & client) and web (public pages & store management) experiences.
• Native modules (bluetooth ESC/POS printer, PDF generation) and Firebase (via Google services JSON) provide printing, receipts, and real-time data/storage.
File structure
• Top-level android/ and ios/ directories: native Android (Gradle, Java/Kotlin) and iOS (Xcode, Obj-C/Swift) projects.
• app/ directory: file-based routes subdivided into (mobile) → (admin, auth, client) and (web) → (Lpages, auth, storeManagement).
• components/ and hooks/: reusable UI widgets and custom React hooks (Bluetooth, session management).
• databaseConfig.js: centralized configuration for remote DB (Firebase or other).
• babel.config.js, metro.config.js, package.json: build and bundler configuration.
• scripts/reset-project.js, patches/: development helper scripts and patch overrides for native dependencies.
README
• Confirms an Expo project scaffolded with create-expo-app.
• Recommends npm install and npx expo start.
• Mentions file-based routing in app/ as the main development pattern.
• No server backend code present → likely serverless or cloud-hosted APIs (Firebase).
Main components and their interactions
a. Frontend layers
• Mobile App (Expo Go / Dev build)
• Web App (responsive React‐based pages)
• Shared UI component library (components/, utility/)
b. Native bridging
• Bluetooth printer plugin (react-native-bluetooth-escpos-printer)
• PDF generator (react-native-html-to-pdf)
c. Cloud services
• Authentication & Database (Firebase / Google services)
• Storage (images, fonts) via Firebase or CDN
d. Build & deployment
• Metro bundler → JS bundle
• Android: Gradle → APK / AAB
• iOS: Xcode → IPA
• Web: Static asset generation / hosting (Next-style router)
Architectural patterns & design principles
• File-based routing (Expo Router) separates screens into routes.
• Feature folders under app/ enforce domain boundaries (admin vs. client).
• Componentization and hooks encourage reuse and separation of concerns.
• Native modules are wrapped via React Native bridge for printer and PDF.
• Environment config (databaseConfig.js, Google JSON) isolates service endpoints.