How honky67/e-commerce-project_-re-vintage- works
RE Vintage is a vintage-commerce storefront with a Next.js frontend and a FastAPI backend. Shoppers can browse a mock product and shop catalog and view product details; account registration and login use the API. Seller dashboards and admin pages provide additional product, store, and administration capabilities. The backend exposes authentication, product, shop, and admin routes over SQLAlchemy models. The README gives no further product specification; several frontend catalog paths use mock data, and the API-to-backend connection is not directly verified by the excerpts.
Main entry points: auth.py Auth routes · router.py API router · api.ts API client · session.py Database sessions
Components 23
Storefront
- Home catalog
E-commerce-Project_-RE-Vintage-/frontend/src/app/page.tsx - Shop directory
E-commerce-Project_-RE-Vintage-/frontend/src/app/shops/page.tsx - Product detail
E-commerce-Project_-RE-Vintage-/frontend/src/app/product/[id]/page.tsx - Mock catalog data
E-commerce-Project_-RE-Vintage-/frontend/src/data/mockData.ts
Identity
- Login / register
E-commerce-Project_-RE-Vintage-/frontend/src/components/AuthForm.tsx - Auth state
E-commerce-Project_-RE-Vintage-/frontend/src/components/AuthProvider.tsx - API client
E-commerce-Project_-RE-Vintage-/frontend/src/lib/api.ts
Seller & Admin
- Admin page
E-commerce-Project_-RE-Vintage-/frontend/src/app/admin/page.tsx - Product management
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/products/page.tsx - Store management
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/store/page.tsx
Backend API
- Backend entry
E-commerce-Project_-RE-Vintage-/backend/app/main.py - API router
E-commerce-Project_-RE-Vintage-/backend/app/api/router.py - Auth routes
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Product routes
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/products.py - Shop routes
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/shops.py - Admin routes
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/admin.py - Auth dependencies
E-commerce-Project_-RE-Vintage-/backend/app/api/deps.py - Token security
E-commerce-Project_-RE-Vintage-/backend/app/core/security.py - API schemas
E-commerce-Project_-RE-Vintage-/backend/app/schemas.py
Persistence
- Database sessions
E-commerce-Project_-RE-Vintage-/backend/app/db/session.py - Domain models
E-commerce-Project_-RE-Vintage-/backend/app/models
Other components
- Shopper
- Vendor / admin
Connections 36
- Shopper → Home catalog: browses
E-commerce-Project_-RE-Vintage-/frontend/src/app/page.tsx - Shopper → Shop directory: finds shops
E-commerce-Project_-RE-Vintage-/frontend/src/app/shops/page.tsx - Shopper → Product detail: views item
E-commerce-Project_-RE-Vintage-/frontend/src/app/product/[id]/page.tsx - Home catalog → Mock catalog data: reads products
E-commerce-Project_-RE-Vintage-/frontend/src/app/page.tsx - Shop directory → Mock catalog data: reads shops
E-commerce-Project_-RE-Vintage-/frontend/src/app/shops/page.tsx - Product detail → Mock catalog data: looks up item
E-commerce-Project_-RE-Vintage-/frontend/src/app/product/[id]/page.tsx - Shopper → Login / register: signs in
E-commerce-Project_-RE-Vintage-/frontend/src/components/AuthForm.tsx - Login / register → Auth state: calls auth
E-commerce-Project_-RE-Vintage-/frontend/src/components/AuthForm.tsx - Auth state → API client: requests identity
E-commerce-Project_-RE-Vintage-/frontend/src/components/AuthProvider.tsx - Vendor / admin → Product management: manages listings
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/products/page.tsx - Vendor / admin → Store management: manages store
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/store/page.tsx - Vendor / admin → Admin page: administers
E-commerce-Project_-RE-Vintage-/frontend/src/app/admin/page.tsx - Product management → API client: calls API
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/products/page.tsx - Store management → API client: calls API
E-commerce-Project_-RE-Vintage-/frontend/src/app/dashboard/store/page.tsx - Admin page → API client: calls API
E-commerce-Project_-RE-Vintage-/frontend/src/app/admin/page.tsx - API client → Backend entry: sends HTTP
- Backend entry → API router: mounts routes
E-commerce-Project_-RE-Vintage-/backend/app/main.py - API router → Auth routes: registers routes
E-commerce-Project_-RE-Vintage-/backend/app/api/router.py - API router → Product routes: registers routes
E-commerce-Project_-RE-Vintage-/backend/app/api/router.py - API router → Shop routes: registers routes
E-commerce-Project_-RE-Vintage-/backend/app/api/router.py - API router → Admin routes: registers routes
E-commerce-Project_-RE-Vintage-/backend/app/api/router.py - Auth routes → Auth dependencies: checks current user
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Auth routes → Token security: hashes and signs
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Auth routes → Database sessions: gets session
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Auth routes → Domain models: queries users
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Auth routes → API schemas: validates payloads
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/auth.py - Auth dependencies → Token security: decodes token
E-commerce-Project_-RE-Vintage-/backend/app/api/deps.py - Auth dependencies → Database sessions: gets session
E-commerce-Project_-RE-Vintage-/backend/app/api/deps.py - Product routes → Database sessions: uses session
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/products.py - Product routes → Domain models: uses product models
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/products.py - Product routes → API schemas: uses schemas
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/products.py - Shop routes → Database sessions: uses session
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/shops.py - Shop routes → Domain models: uses shop models
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/shops.py - Shop routes → API schemas: uses schemas
E-commerce-Project_-RE-Vintage-/backend/app/api/routes/shops.py - Backend entry → Database sessions: initializes database
E-commerce-Project_-RE-Vintage-/backend/app/main.py - Backend entry → Domain models: loads models
E-commerce-Project_-RE-Vintage-/backend/app/main.py