How gajukharche1/local-business-directory works
This is a local-business directory for discovering, contacting, reviewing, and managing businesses. The main user journey is search or browse → inspect a business profile → send an enquiry or review; owners can submit and manage listings, while administrators moderate and maintain directory data. The graph includes documented SEO, analytics, media, billing, and import capabilities. Relationships are based on README statements and SOURCE INDEX references; unsampled implementations are represented only at supported paths.
Main entry points: search/page.tsx Search results · client.ts PostgreSQL data access · listing.service.ts Listing service · app/page.tsx Directory home
Components 28
Public directory
- Directory home
app/page.tsx - Search results
app/(public)/search/page.tsx - Search filters
components/search/search-filters.tsx - Listing cards
components/listing/listing-card.tsx - Map view
components/map/map-view.tsx - Category and location pages
app/(public)/category/[...slug]/page.tsx - Business profile
app/(public)/listing/[slug]/page.tsx - Customer enquiries
actions/enquiry.ts - Review submission
components/reviews/review-form.tsx
Merchant tools
- Business submission
app/(public)/submit/page.tsx - Merchant dashboard
app/(account)/dashboard/page.tsx - Listing analytics
lib/services/analytics.service.ts - Media management
components/media/media-manager.tsx - Billing and plans
app/(account)/dashboard/billing/page.tsx
Administration
- Admin moderation
app/(admin)/admin/moderation/page.tsx - Taxonomy management
actions/taxonomy.ts - CSV import
app/(admin)/admin/imports/page.tsx
Domain services
- Search service
lib/services/search.service.ts - Review actions
actions/review.ts - Review service
lib/services/review.service.ts - Payment webhook
app/api/webhooks/payments/route.ts - Listing service
lib/services/listing.service.ts - Plan service
lib/services/plan.service.ts - SEO and metadata
lib/services/seo.service.ts
Platform foundation
- Session and access
lib/auth/session.ts - PostgreSQL data access
lib/db/client.ts - Media storage
lib/storage/driver.ts
Other components
- Directory visitor
Connections 30
- Directory visitor → Directory home: browses
README.md - Directory visitor → Search results: searches
README.md - Directory home → Search results: opens search
README.md - Directory home → Category and location pages: browses categories
README.md - Search results → Search service: queries
app/(public)/search/page.tsx - Search results → Search filters: renders filters
app/(public)/search/page.tsx - Search results → Listing cards: renders results
app/(public)/search/page.tsx - Search results → Map view: renders map
app/(public)/search/page.tsx - Directory visitor → Business profile: opens listing
README.md - Business profile → Customer enquiries: starts enquiry
README.md - Business profile → Review submission: submits review
README.md - Review submission → Review actions: calls action
components/reviews/review-form.tsx - Review actions → Review service: submits review
actions/review.ts - Review service → PostgreSQL data access: reads and writes
lib/services/review.service.ts - Directory visitor → Business submission: submits business
README.md - Business submission → Listing service: creates listing
- Merchant dashboard → Listing service: loads listings
app/(account)/dashboard/page.tsx - Merchant dashboard → Listing analytics: views analytics
- Merchant dashboard → Media management: manages media
README.md - Media management → Media storage: stores assets
README.md - Media management → PostgreSQL data access: records media
- Admin moderation → Listing service: moderates listings
README.md - Taxonomy management → PostgreSQL data access: manages taxonomy
actions/taxonomy.ts - CSV import → Listing service: imports listings
README.md - Billing and plans → Plan service: shows plans
- Payment webhook → PostgreSQL data access: updates records
- Session and access → PostgreSQL data access: reads sessions
lib/auth/session.ts - Listing service → PostgreSQL data access: reads listings
lib/services/listing.service.ts - Directory home → SEO and metadata: provides metadata
README.md - Business profile → SEO and metadata: generates structured data
README.md