How donavfulish/autionweb_finalproject_ptudw works
Aution Web is a full-stack auction marketplace: buyers browse listings, inspect products, bid and track orders, while sellers manage listings and fulfill sales; an admin app manages marketplace data and users. The client’s product page explicitly uses bid history, questions and related-product components, and its product hooks call product services. The Express backend provides domain controllers and services, with authentication and scheduled auction-expiry work among the documented source modules. README identifies PostgreSQL and the client/server stack. Many domain pages and backend routes are listed but unsampled, so their links are omitted or marked unverified.
Main entry points: page.tsx Product details · ProductController.ts Product controller · index.ts API route definitions · useProduct.ts Product data hooks
Components 24
Marketplace browsing
- Browse and search
client/app/(MainLayout)/(sidebar-category)/page.tsx - Product details
client/app/(MainLayout)/product/[product_slug]/page.tsx - Bid history
client/app/(MainLayout)/product/[product_slug]/components/BidHistory.tsx - Product questions
client/app/(MainLayout)/product/[product_slug]/components/Question.tsx - Related products
client/app/(MainLayout)/product/[product_slug]/components/RelatedProducts.tsx - Product data hooks
client/hooks/useProduct.ts - Product API client
client/services/ProductService.ts
Accounts and administration
- Account and selling
client/app/(MainLayout)/user/selling_products/create/page.tsx - Admin management
admin/app/(MainLayout)/page.tsx - Admin product hooks
admin/hooks/useProduct.ts - Admin product API client
admin/services/ProductService.ts
Auction transactions
- Buyer order tracking
client/app/(MainLayout)/product/order/[product_id]/page.tsx - Seller order fulfillment
client/app/(MainLayout)/product/sell/order/[product_id]/page.tsx
Backend services
- Express application
server/src/server.ts - Product controller
server/src/controllers/ProductController.ts - Product domain service
server/src/services/ProductService.ts - Authentication controller
server/src/controllers/AuthController.ts - Authentication service
server/src/services/AuthService.ts - Auction expiry job
server/src/cron/checkEndTimeProduct.ts - Email delivery
server/src/utils/mailer.ts - PostgreSQL database
server/src/config/db.ts
Shared contracts
- API route definitions
shared/src/api/index.ts - Domain types
shared/src/types/index.ts
Other components
- Marketplace user
Connections 23
- Marketplace user → Browse and search: browses
- Marketplace user → Product details: opens listing
- Product details → Bid history: renders
client/app/(MainLayout)/product/[product_slug]/page.tsx - Product details → Product questions: renders
client/app/(MainLayout)/product/[product_slug]/page.tsx - Product details → Related products: renders
client/app/(MainLayout)/product/[product_slug]/page.tsx - Product data hooks → Product API client: calls
client/hooks/useProduct.ts - Marketplace user → Account and selling: manages listings
- Marketplace user → Buyer order tracking: tracks purchase
- Marketplace user → Seller order fulfillment: fulfills sale
- Admin management → Admin product hooks: manages products
- Admin product hooks → Admin product API client: calls
admin/hooks/useProduct.ts - Product API client → API route definitions: uses routes
client/services/ProductService.ts - Admin product API client → API route definitions: uses routes
admin/services/ProductService.ts - API route definitions → Express application: targets API
- Express application → Product controller: dispatches
- Product controller → Product domain service: delegates
server/src/controllers/ProductController.ts - Authentication controller → Authentication service: delegates
server/src/controllers/AuthController.ts - Authentication service → PostgreSQL database: queries via base service
- Auction expiry job → PostgreSQL database: checks expiry
server/src/cron/checkEndTimeProduct.ts - Auction expiry job → Email delivery: sends notices
server/src/cron/checkEndTimeProduct.ts - Authentication controller → Email delivery: sends OTP email
server/src/controllers/AuthController.ts - Product controller → Domain types: uses types
server/src/controllers/ProductController.ts - Product data hooks → Domain types: uses types
client/hooks/useProduct.ts