Skip to content

Latest commit

Β 

History

History
68 lines (51 loc) Β· 4.25 KB

File metadata and controls

68 lines (51 loc) Β· 4.25 KB

BOLIYAN PROJECT INDEX

Central Navigation Hub

πŸ“– READ THE MANIFESTO

πŸš€ MISSION & VALUES

Boliyan is built to become the Default Operating System for Pakistan's secondary economy. We stand for:

  1. Respect for Time: No window shoppers. No "Is this available?".
  2. High Intent: Bidding is the only way to start a conversation.
  3. Ruthless Minimalism: If a visual cue works, we delete the text.

πŸ—ΊοΈ NAVIGATOR

πŸ“œ Root Documentation

  • Project Rules (AGENTS.md) β€” Operational Rules & Design Philosophy.
  • Manifesto β€” Product Vision & Mission.
  • Gemini Knowledge β€” Detailed Project Knowledge Base.

πŸ“‚ Apps (Frontend)

Core Logic & Hooks

  • Web App Logic (apps/web/src/lib) β€” Store, Supabase client, Utilities.
  • Hooks (apps/web/src/hooks) β€” Custom React Hooks (Bidding, Realtime, Sound, etc.).

Component Directories (apps/web/src/components/)

  • Common β€” Shared badges, controls, and domain primitives (22 components).
  • Marketplace β€” Core interactions (ItemCard, Grid, Filters, ProductDetails).
  • Dashboard β€” My Bids, My Listings, Watchlist, Settings.
  • Inbox β€” Chat window, conversation list, message UI.
  • Notifications β€” Notification feed, dropdown, and items.
  • Auth β€” Authentication dialog and Turnstile captcha.
  • Search β€” Search bar, category nav, similar items.
  • Seller β€” Seller listing card and confirmation dialogs.
  • Profile β€” Reviews, ratings, profile completeness.
  • Layout β€” Navbar, Footer, BottomNav, Sidebar, ScrollToTop.
  • Branding β€” Logo and loader mark.
  • Analytics β€” Google Analytics integration.
  • Ads β€” Ad card and banner ad.
  • Admin β€” Admin guard component.
  • UI Primitives β€” Shadcn + Radix primitives.

πŸ“¦ Packages (Backend & Shared)

  • Database (packages/database) β€” Raw SQL Schema & Migrations.
  • Shared Logic (packages/shared) β€” Validation & Business Logic.

πŸ—οΈ ARCHITECTURE OVERVIEW

Monorepo Structure

Boliyan uses a manual monorepo structure (no Turborepo/Nx yet) to keep things simple.

  • apps/web: The main Next.js 16 application.

    • Uses a custom Context Provider architecture (MarketplaceContext, AuthContext, etc.) for state management.
    • Live Data: Powered by Supabase. Real-time subscriptions for bids and messaging.
  • packages/database: The Source of Truth for data.

    • Native SQL: Raw SQL schema files (schema.sql). No ORM.
  • packages/shared: Isomorphic business logic.

    • Code here must run in both Browser and Node.js environments.
    • Used for validating bids, parsing amounts, etc.

πŸ” QUICK LINKS

  • Global Store (Compatibility Layer)
  • Database Schema