How shekinah007/trade-zone works
This is a Next.js marketplace with a property/item registry, account dashboard, ownership transfers, messaging, and administrative and monetization features. The main user flow is to register or sign in, browse or search listings and registry records, create or manage an item, and use the dashboard for ownership and account actions. The graph groups the principal product stages and persistence/authentication layer. Several routes and capability branches are represented from the file tree and source index; their internal behavior was not sampled, so uncertain connections are omitted.
Main entry points: app/page.tsx Home · Item.ts Item model · market/page.tsx Marketplace pages · db.ts Database connector
Components 30
Marketplace experience
- Home
app/page.tsx - Marketplace pages
app/market/page.tsx - Listing card
components/ListingCard.tsx - Listing routes
app/api/listings - Listing creation
app/listings/create/page.tsx - Button primitive
components/ui/button.tsx - Input primitive
components/ui/input.tsx - Card primitive
components/ui/card.tsx - Dialog primitive
components/ui/dialog.tsx - Badge primitive
components/ui/badge.tsx - Background paths
components/ui/background-paths.tsx
Registry and ownership
- Registry pages
app/registry - Registry search
app/registry/search/RegistrySearchPage.tsx - Registry routes
app/api/registry - Transfer routes
app/api/transfers
Accounts and engagement
- User dashboard
app/dashboard/page.tsx - Messaging pages
app/messages - Notifications
app/notifications/page.tsx - Reviews
app/api/reviews - Sign-up
app/auth/signup/page.tsx
Admin and monetization
- Admin console
app/admin - Paid features
app/dashboard/featured - Token management
app/admin/tokens/page.tsx
Persistence and auth
- Authentication
lib/auth.ts - Database connector
lib/db.ts - Item model
models/Item.ts - User model
models/User.ts - Category model
models/Category.ts
Other components
- Visitor or member
- MongoDB
Connections 40
- Visitor or member → Home: opens
- Visitor or member → Sign-up: registers
- Home → Marketplace pages: browses
- Home → Registry search: searches
- Marketplace pages → Listing card: renders
app/market/page.tsx - Marketplace pages → Item model: reads
app/market/page.tsx - Marketplace pages → Category model: reads
app/market/page.tsx - Home → Item model: reads
app/page.tsx - Home → Listing card: renders
app/page.tsx - Home → Background paths: renders
app/page.tsx - Listing creation → Listing routes: submits
- Listing routes → Database connector: connects
app/api/listings/route.ts - Listing routes → Item model: reads and writes
app/api/listings/route.ts - Listing routes → Category model: uses
app/api/listings/route.ts - Registry pages → Registry search: includes
- Registry routes → Database connector: connects
app/api/registry/route.ts - Registry routes → Item model: reads and writes
app/api/registry/route.ts - Registry routes → User model: reads
app/api/registry/route.ts - Registry routes → Visitor or member: looks up location
app/api/registry/route.ts - Transfer routes → Database connector: connects
app/api/transfers/route.ts - Transfer routes → Item model: reads
app/api/transfers/route.ts - Transfer routes → User model: checks recipient
app/api/transfers/route.ts - Visitor or member → User dashboard: manages account
- User dashboard → Item model: loads listings
app/dashboard/page.tsx - User dashboard → Messaging pages: shows conversations
- Visitor or member → Messaging pages: messages
- Visitor or member → Notifications: reviews alerts
- Visitor or member → Reviews: submits review
- Sign-up → Button primitive: renders
app/auth/signup/page.tsx - Sign-up → Input primitive: renders
app/auth/signup/page.tsx - Authentication → Database connector: connects
lib/auth.ts - Authentication → User model: authenticates
lib/auth.ts - Authentication → Visitor or member: signs in
- Visitor or member → Admin console: administers
- Visitor or member → Paid features: buys features
- Visitor or member → Token management: manages tokens
- Marketplace pages → Button primitive: renders
app/market/page.tsx - Listing card → Badge primitive: renders
components/ListingCard.tsx - Button primitive → MongoDB: not applicable
- Database connector → MongoDB: connects
lib/db.ts