How denmarkdeni/fakedetect works
Fake Detect is a marketplace-oriented counterfeit-reporting and trust platform: customers browse products, flag suspected counterfeits, and use shopping features, while sellers manage listings and administrators review products, flags, and users. The frontend routes role-specific screens and calls a Django REST API backed by marketplace models. Email verification is a documented registration-to-login flow. Source excerpts do not expose the complete API routing or most feature implementations, so uncertain frontend/backend links are dashed or omitted.
Main entry points: App.js App Router · views.py API Views · auth.js Authentication · EmailVerified.js Email Verification
Components 17
Frontend
- App Router
frontend/src/App.js - Home Page
frontend/src/pages/Home.js - Authentication
frontend/src/pages/auth.js - Email Verification
frontend/src/pages/EmailVerified.js - API Client
frontend/src/api/api.js
Marketplace
- Customer Screens
frontend/src/components/customer - Customer Dashboard
frontend/src/components/dashboards/CustomerDashboard.js - Product Details
frontend/src/components/dashboards/ProductDetails.js - Seller Screens
frontend/src/components/dashboards/SellerProducts.js
Administration
- Admin Screens
frontend/src/components/admin
Backend
- API Views
backend/api_app/views.py - Serializers
backend/api_app/serializers.py - Marketplace Models
backend/api_app/models.py
Other components
- Customer
- Seller
- Administrator
- Email Service
Connections 23
- Customer → App Router: uses
- Seller → App Router: uses
- Administrator → App Router: uses
- App Router → Home Page: routes to
frontend/src/App.js - App Router → Authentication: routes to
frontend/src/App.js - App Router → Email Verification: routes to
frontend/src/App.js - App Router → Customer Dashboard: routes to
frontend/src/App.js - App Router → Product Details: routes to
frontend/src/App.js - App Router → Customer Screens: routes to
frontend/src/App.js - App Router → Seller Screens: routes to
frontend/src/App.js - App Router → Admin Screens: routes to
frontend/src/App.js - Authentication → API Client: submits credentials
frontend/src/pages/auth.js - Product Details → API Views: requests product data
- Customer Screens → API Views: requests marketplace actions
- Seller Screens → API Views: manages listings
- Admin Screens → API Views: manages products
frontend/src/components/admin/ProductManagement.js - API Client → API Views: sends API requests
- API Views → Serializers: serializes records
backend/api_app/views.py - API Views → Marketplace Models: reads and updates
backend/api_app/views.py - Serializers → Marketplace Models: serializes models
backend/api_app/serializers.py - Authentication → Email Service: requests verification
- Email Service → Email Verification: delivers link
- Email Verification → Authentication: continues to login