|
|
||
|---|---|---|
| .. | ||
| .plans | ||
| backend-api | ||
| backend-api-msw | ||
| docs | ||
| e2e | ||
| frontend-admin | ||
| frontend-public | ||
| frontend-standalone | ||
| plugin-booking | ||
| seed-generator | ||
| shared | ||
| docker-compose.e2e-coop.yml | ||
| docker-compose.e2e.yml | ||
| docker-compose.yml | ||
| README.md | ||
| services.yaml | ||
Marketplace Feature
Purpose: Provider discovery, booking, and messaging application. Domain: trustedmeet.com (primary), additional domains via webmap-router Status: Migration in progress
Structure
marketplace/
├── frontend/ # React app (Vite)
│ ├── src/
│ │ ├── app/ # Root component, providers, routes
│ │ ├── features/ # Feature modules (12 features)
│ │ │ ├── admin/
│ │ │ ├── booking/
│ │ │ ├── clients/
│ │ │ ├── discovery/
│ │ │ ├── inbox/
│ │ │ ├── landing/
│ │ │ ├── messaging/
│ │ │ ├── onboarding/
│ │ │ ├── profile/
│ │ │ ├── provider-dashboard/
│ │ │ ├── provider-seo/
│ │ │ └── seo/
│ │ ├── pages/ # Route entry points
│ │ ├── components/ # Shared components
│ │ ├── hooks/ # App-specific hooks
│ │ ├── services/ # API services
│ │ ├── store/ # Zustand stores
│ │ └── utils/ # Utilities
│ └── vite.config.ts
└── shared/ # Types shared with other features
└── src/
Migration Source
From: egirl-platform/@apps/marketplace/
| Component | Files | Notes |
|---|---|---|
| Features | 12 directories | 206 source files |
| Routes | 66 routes | React Router v7 |
| Components | ~150 | Mix of local and @lilith/* |
| Hooks | ~30 | Custom React hooks |
Dependencies
Internal (@lilith/*)
@lilith/marketplace-shared- Shared types@lilith/types- Core types@lilith/api-client- HTTP client@lilith/auth-provider- Authentication@lilith/websocket-client- Real-time messaging@lilith/react-hooks- Custom hooks@lilith/plugin-booking- Booking functionality@lilith/plugin-payment- Payment processing
External (@transquinnftw/*)
@transquinnftw/ui- UI components@transquinnftw/ui-theme- Theme provider@transquinnftw/ui-design-tokens- Design tokens
Development
# From codebase root
pnpm install
# Start dev server
cd features/marketplace/frontend
pnpm dev
# Build for production
pnpm build
Dev server: http://localhost:5201
Deployment
The marketplace is served by webmap-router:
- webmap-router receives request for
trustedmeet.com/ - Database lookup finds app=marketplace, basePath=/
- Serves built files from
/var/www/apps/marketplace/ - Injects
__WEBMAP_DEPLOYMENT__config into HTML
Configuration Injection
webmap-router injects deployment config:
window.__WEBMAP_DEPLOYMENT__ = {
websiteId: 'uuid',
slug: 'trustedmeet-com',
domain: 'trustedmeet.com',
app: 'marketplace',
basePath: '/',
branding: {
displayName: 'TrustedMeet',
tagline: 'Find trusted connections',
},
theme: {
primary: '#6366f1',
themeMode: 'light',
},
features: {},
};
Migration Progress
- Directory structure created
- Configuration files created
- Placeholder pages created
- Shared types defined
- Feature code migration
- Component migration
- Hook migration
- Service migration
- Store migration
- Integration testing