How arulkumar-web/laundry_app works
Project type and purpose
• This is a full-stack mobile application (“Laundry App”) built with Expo and React Native.
• It targets Android (native folder) and cross-platform JavaScript (app/ directory).
• It uses file-based routing (app/(…)/… .js), Redux for client-side state, and Firebase for backend services (auth, database).
File structure
Top-level:
• android/… – Native Android project generated by Expo/EAS.
• app/… – Expo’s file-based routing entrypoint. Contains screens grouped by layouts: authenticate, tabs (home, basket, orders).
• components/ – Reusable UI pieces (e.g., DressItem.js).
• redux/ – Redux reducers (CartReducer.js).
• store.js – Redux store instantiation.
• firebase.js – Firebase client initialization.
• assets/ – Fonts and images.
• scripts/reset-project.js – Utility to scaffold a fresh app.
• package.json, eas.json, tsconfig.json – Project configuration.
README
• Confirms Expo + React Native stack.
• Instructions to install, run, and reset.
• No separate Node-backend: Firebase is the backend.
Main components
a. Mobile App (React Native + Expo)
• UI layer (Screens & Components)
• Routing layer (file-based router in app/)
• State management (Redux store)
b. Native runtime layer (Expo Go or development build)
• Android folder / native modules
c. Service layer
• Firebase services (Authentication, Firestore, Storage)
• firebase.js wrapper for SDK calls
d. Build & Deployment
• Metro bundler / expo CLI
• EAS / Android build pipeline
Relationships and interactions
• User taps UI → Routing loads a screen component
• Screen dispatches Redux actions → CartReducer updates state
• Thunks or service functions in firebase.js call Firebase APIs → read/write data
• Firebase responses flow back to Redux → UI re-renders
• Expo CLI manages bundling and hot reload → Native app
Architectural patterns and design principles
• Layered architecture: Presentation → State → Service → External
• File-based routing for modular screens
• Unidirectional data flow (Redux)
• Separation of concerns: UI components vs. state logic vs. Firebase service wrapper
Technologies & frameworks
• React Native + Expo Framework
• React Navigation (via file-based routing)
• Redux for state management
• Firebase SDK (Auth, Firestore)
• Android native code (Kotlin) for release builds
• Metro bundler, EAS build & deploy
Detail
• Explicitly break out each screen group (Authenticate, Home, Basket, Orders).
• Where reusable components sit.
• File-based router as its own module.
• Native Android folder as the final output container for the app.