How shinukjin/wp works
Wedding Project is a wedding-planning web application for couples: users register or log in, then manage shared wedding-preparation tasks, property listings, travel schedules, calendars, budgets, and profile information; administrators review users. The main browser workflow runs through feature pages and components, the Axios client, authenticated API routes, and Prisma-backed data. The README and sampled files establish these capabilities and several internal dependencies; many routes and pages were not sampled, so their detailed links are omitted or marked unverified.
Main entry points: client.ts HTTP client · auth.ts Token authentication · prisma.ts Prisma access · route.ts Preparation API
Components 29
Web experience
- Sign-in and registration
app/(site)/login/page.tsx - Home dashboard
app/(site)/page.tsx - My information
app/(site)/my-info/page.tsx - Admin console
app/(admin)/admin/page.tsx
Planning features
- Wedding preparation UI
components/wedding-prep/WeddingPrepTable.tsx - Property listings UI
components/real-estate/RealEstateTable.tsx - Travel schedule UI
components/schedule/TravelScheduleTable.tsx - Calendar
components/calendar/Calendar.tsx - Dashboard
components/dashboard/Dashboard.tsx
Accounts and sharing
- Profile editor
components/my-info/UserInfoEditModal.tsx - Session and user state
lib/store/useWeddingStore.ts
Server services
- HTTP client
lib/api/client.ts - Authentication API
app/api/auth/login/route.ts - Preparation API
app/api/wedding-prep/route.ts - Property API
app/api/real-estate/route.ts - Travel schedule API
app/api/travel-schedule/route.ts - Calendar API
app/api/calendar/route.ts - Dashboard API
app/api/dashboard/route.ts - User profile API
app/api/user/route.ts - Connection API
app/api/connection/route.ts - Admin user APIs
app/api/admin/users/route.ts - Token authentication
lib/utils/auth.ts - JWT verification
lib/utils/jwt.ts - Partner sharing
lib/utils/connection.ts - Conditional caching
lib/utils/etag.ts - Prisma access
lib/prisma.ts - Application database
prisma/schema.prisma - Application logging
lib/logger.ts
Other components
- Couple or admin
Connections 48
- Couple or admin → Sign-in and registration: opens
app/(site)/login/page.tsx - Couple or admin → Home dashboard: opens
- Couple or admin → Admin console: opens
- Sign-in and registration → Session and user state: updates session
- Sign-in and registration → HTTP client: submits credentials
- Home dashboard → Dashboard: renders
app/(site)/page.tsx - Home dashboard → Calendar: renders
app/(site)/page.tsx - Home dashboard → Session and user state: reads state
app/(site)/page.tsx - Dashboard → HTTP client: requests data
components/dashboard/Dashboard.tsx - Calendar → HTTP client: requests events
components/calendar/Calendar.tsx - My information → Profile editor: renders editor
app/(site)/my-info/page.tsx - My information → HTTP client: requests profile
app/(site)/my-info/page.tsx - Profile editor → HTTP client: updates profile
components/my-info/UserInfoEditModal.tsx - Wedding preparation UI → HTTP client: requests tasks
components/wedding-prep/WeddingPrepTable.tsx - Property listings UI → HTTP client: requests listings
components/real-estate/RealEstateTable.tsx - Property listings UI → Session and user state: reads state
components/real-estate/RealEstateTable.tsx - Travel schedule UI → HTTP client: requests schedule
components/schedule/TravelScheduleTable.tsx - Travel schedule UI → Session and user state: reads state
components/schedule/TravelScheduleTable.tsx - HTTP client → Authentication API: sends requests
- HTTP client → Preparation API: sends requests
- HTTP client → Property API: sends requests
- HTTP client → Travel schedule API: sends requests
- HTTP client → Calendar API: sends requests
- HTTP client → Dashboard API: sends requests
- HTTP client → User profile API: sends requests
- HTTP client → Admin user APIs: sends requests
- Authentication API → Token authentication: verifies token
- Preparation API → Token authentication: verifies token
app/api/wedding-prep/route.ts - Property API → Token authentication: verifies token
app/api/real-estate/route.ts - Calendar API → Token authentication: verifies token
app/api/calendar/route.ts - Dashboard API → Token authentication: verifies token
app/api/dashboard/route.ts - User profile API → Token authentication: verifies token
app/api/user/route.ts - Connection API → Token authentication: verifies token
app/api/connection/route.ts - Admin user APIs → Token authentication: verifies token
- Token authentication → JWT verification: uses
lib/utils/auth.ts - Preparation API → Partner sharing: gets shared users
app/api/wedding-prep/route.ts - Property API → Partner sharing: gets shared users
app/api/real-estate/route.ts - Calendar API → Partner sharing: gets shared users
app/api/calendar/route.ts - User profile API → Partner sharing: gets partner
app/api/user/route.ts - Partner sharing → Prisma access: queries connections
lib/utils/connection.ts - Preparation API → Prisma access: reads and writes
app/api/wedding-prep/route.ts - Property API → Prisma access: reads and writes
app/api/real-estate/route.ts - Calendar API → Prisma access: reads and writes
app/api/calendar/route.ts - Dashboard API → Prisma access: reads data
app/api/dashboard/route.ts - User profile API → Prisma access: reads and writes
app/api/user/route.ts - Connection API → Prisma access: reads and writes
app/api/connection/route.ts - Prisma access → Application database: queries
- Preparation API → Conditional caching: checks cache
app/api/wedding-prep/route.ts