Origin: CMOLDS (Bitbucket:
cmolds/blderdash_mobile_app_2026)
Mirrored to:gopalpatel/blderdash-oldon GitHub
Purpose: Reference and migration source for the BlderDash rebuild.
This is the original React Native app built by CMOLDS. It is being reorganized from a layer-based ("layer-cake") architecture into vertical slices (feature-based modules) per the Matt Pocock AI skills methodology. The goal is to make the codebase AI-navigable, testable, and aligned with the new Cloudflare backend.
- Vertical slices over layer cakes. Each feature (auth, orders, catalog, driver, supplier, etc.) is a self-contained module with its own API, state, types, screens, and components.
- Deep modules. Small public interface, rich internal implementation. Each feature exports only what callers need through
index.ts. - No cross-feature imports. Features communicate only through their public interfaces. Shared infrastructure lives in
shared/. - AI-navigable. An agent asked to "add order cancellation" finds everything in
features/orders/.
src/
features/
auth/ # Login, signup, verification, onboarding
profile/ # User profile, addresses, settings
catalog/ # Categories, products, search, filters
cart/ # Shopping cart
orders/ # Order lifecycle, checkout, payment
driver/ # Job acceptance, delivery tracking
supplier/ # Product management, order fulfillment
chat/ # Messaging between users
wallet/ # Wallet balance, transactions
reviews/ # Product and driver ratings
shared/
navigation/ # Navigation infrastructure (not screen definitions)
components/ # Truly shared UI primitives (Button, Input, etc.)
utils/ # Generic utilities (axios wrapper, storage, etc.)
hooks/ # Shared hooks (theme, translation, back handler)
theme/ # Colors, fonts, spacing
i18n/ # Translation framework
CONTEXT.md— Domain model and ubiquitous language for BlderDashdocs/vertical-slice-reorganization.md— Step-by-step migration plan from layer-cake to vertical slicesdocs/cloudflare-backend-architecture.md— Full architecture for the Cloudflare Workers backenddocs/adr/0001-vertical-slice-architecture.md— Architecture Decision Record
This repo uses the Matt Pocock AI skills for agent-driven development:
/grill-with-docs— Stress-test plans against the domain model/improve-codebase-architecture— Find deepening opportunities/to-issues— Break PRDs into vertical slice GitHub issues/to-prd— Turn resolved context into a Product Requirements Document/tdd— Red-green-refactor for agentic coding/triage— Organize the backlog
- React Native 0.83.1
- TypeScript 5.9.3
- Redux Toolkit + Redux Persist
- React Navigation 7
- Axios for HTTP
- Formik + Yup for forms
- react-native-maps for location
yarn start # Metro bundler
yarn android # Run on Android
yarn ios # Run on iOS
yarn test # Run Jest tests
yarn lint # ESLint
yarn format # Prettier| Feature | Status | Old Location | New Location |
|---|---|---|---|
| Auth | Pending | screens/auth/, api/functions/auth.tsx, redux/slices/user |
features/auth/ |
| Profile | Pending | screens/user/ (Profile, EditProfile), api/functions/app/user |
features/profile/ |
| Catalog | Pending | screens/customer/, screens/user/Home, api/functions/app/home |
features/catalog/ |
| Cart | Pending | screens/user/Cart, components/appComponents/CartItemCard |
features/cart/ |
| Orders | Pending | screens/customer/MyOrders, screens/supplier/SupplierOrders* |
features/orders/ |
| Driver | Pending | screens/driver/ |
features/driver/ |
| Supplier | Pending | screens/supplier/ |
features/supplier/ |
| Chat | Pending | screens/user/Chat, screens/user/Messages, screens/user/Rooms |
features/chat/ |
| Wallet | Pending | screens/user/MyWallet, screens/user/TransactionHistory |
features/wallet/ |
| Reviews | Pending | screens/user/Reviews, screens/user/AddReview |
features/reviews/ |
The new backend is being built on Cloudflare:
- Workers — API endpoints (11 services: auth, profile, catalog, cart, orders, deliveries, supplier, chat, wallet, notifications, admin)
- D1 — SQLite database for relational data
- Durable Objects — Real-time chat and live delivery tracking
- KV — Session tokens, cart cache, config
- R2 — Product images, user avatars, documents
- Queues — Background jobs (notifications, analytics, driver alerts)
See docs/cloudflare-backend-architecture.md for the full spec.
- The
//DENTFIXRcomment insrc/api/routes/index.tsxconfirms this is copy-paste boilerplate from a prior CMOLDS project. These generic social-media endpoints (posts, likes, comments, follows) are unused and will be removed during migration. - The current Redux store has only 4 slices (
user,app,address,notification). During vertical slice migration, each feature will own its own slice. - The
AppNavigator.tsxcurrently conditionally renders driver screens based onstate.user.role. In the new architecture, the navigator will be feature-agnostic and each feature will register its routes.