How vishwavinoth/dropship-admin works
This is a multi-store e-commerce admin CMS and API, with Stripe checkout and order processing. Administrators authenticate, select or create a store, manage its catalog and settings, then expose store-scoped API routes; customers can check out, and Stripe webhooks mark orders paid. The dashboard also reports orders, sales, and revenue. The graph preserves documented capabilities whose implementation was not sampled; dashed links mark relationships documented at a high level rather than verified in excerpts.
Main entry points: prismadb.ts Prisma Database · (routes) Catalog CMS · client.tsx Resource Tables · route.ts Checkout Handler
Components 21
Access and Stores
- Clerk Sign-in
app/(auth)/(routes) - Store Setup
components/modals/store-modal.tsx - Store Switcher
components/store-switcher.tsx - Store Modal State
hooks/use-store-modal.tsx
Store Management
- Store Dashboard
app/(dashboard)/[storeId]/(routes) - Catalog CMS
app/(dashboard)/[storeId]/(routes) - Product Forms
app/(dashboard)/[storeId]/(routes)/products/[productId]/components/product-form.tsx - Resource Tables
app/(dashboard)/[storeId]/(routes)/categories/components/client.tsx - Orders and Analytics
app/(dashboard)/[storeId]/(routes)/orders - Revenue Metrics
actions/get-graph-revenue.ts
Commerce and Data
- Store API
app/api/[storeId] - Store Endpoints
app/api/stores - Checkout Handler
app/api/[storeId]/checkout/route.ts - Stripe Webhook
app/api/webhook/route.ts - Prisma Database
lib/prismadb.ts
Shared UI
- Data Table
components/ui/data-table.tsx - API Reference UI
components/ui/api-list.tsx - UI Primitives
components/ui/button.tsx
Other components
- Administrator
- Stripe
- Store Customer
Connections 22
- Administrator → Clerk Sign-in: signs in
- Administrator → Store Setup: creates store
- Store Setup → Store Modal State: uses state
components/modals/store-modal.tsx - Store Switcher → Store Modal State: opens modal
components/store-switcher.tsx - Administrator → Store Switcher: selects store
- Store Dashboard → Catalog CMS: opens sections
- Catalog CMS → Product Forms: edits products
- Catalog CMS → Resource Tables: renders lists
app/(dashboard)/[storeId]/(routes)/categories/components/client.tsx - Resource Tables → Data Table: renders
app/(dashboard)/[storeId]/(routes)/categories/components/client.tsx - Resource Tables → API Reference UI: shows endpoints
app/(dashboard)/[storeId]/(routes)/categories/components/client.tsx - API Reference UI → Store API: documents routes
components/ui/api-list.tsx - Store API → Prisma Database: reads and writes
app/api/[storeId]/categories/route.ts - Store Endpoints → Prisma Database: reads and writes
app/api/stores/route.ts - Store Customer → Checkout Handler: starts checkout
- Checkout Handler → Stripe: creates session
app/api/[storeId]/checkout/route.ts - Checkout Handler → Prisma Database: creates order
app/api/[storeId]/checkout/route.ts - Stripe → Stripe Webhook: sends event
- Stripe Webhook → Stripe: verifies event
app/api/webhook/route.ts - Stripe Webhook → Prisma Database: updates order
app/api/webhook/route.ts - Orders and Analytics → Revenue Metrics: reports revenue
- Revenue Metrics → Prisma Database: queries metrics
actions/get-graph-revenue.ts - UI Primitives → Data Table: supports controls
components/ui/data-table.tsx