Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

75 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlderDash Mobile App (Old Codebase)

Origin: CMOLDS (Bitbucket: cmolds/blderdash_mobile_app_2026)
Mirrored to: gopalpatel/blderdash-old on 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.

Architecture Principles

  1. 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.
  2. Deep modules. Small public interface, rich internal implementation. Each feature exports only what callers need through index.ts.
  3. No cross-feature imports. Features communicate only through their public interfaces. Shared infrastructure lives in shared/.
  4. AI-navigable. An agent asked to "add order cancellation" finds everything in features/orders/.

Directory Structure (Target)

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

Key Documents

Skills Installed

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

Tech Stack

  • 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

Scripts

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

Migration Status

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/

Backend

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.

Notes

  • The //DENTFIXR comment in src/api/routes/index.tsx confirms 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.tsx currently conditionally renders driver screens based on state.user.role. In the new architecture, the navigator will be feature-agnostic and each feature will register its routes.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages