How muhammad-faizullah/e-commerce works
This is a Django REST backend for a clothing shop: users register or sign in, browse and filter products, place orders, and submit payments or feedback. Account management also covers profiles, password recovery, and administrative user operations; the backend additionally supports product/catalog administration and scheduled birthday reminders. The sampled views and serializers show the main request flow, while the source index identifies other major modules. The README is empty, and some implementation details—especially content endpoints and task execution—were not excerpted, so those links are limited to indexed evidence.
Main entry points: order/views.py Order endpoints · account/views.py Account endpoints · content/views.py Catalog endpoints · urls.py HTTP routes
Components 18
Accounts and access
- Account endpoints
account/views.py - Account serializers
account/serializer.py - Users and OTPs
account/models.py - Role permissions
account/permissions.py
Product catalog
- Catalog endpoints
content/views.py - Catalog serializers
content/serializer.py - Catalog filters
content/filters.py - Products and variants
content/models.py
Orders and feedback
- Order endpoints
order/views.py - Order serializers
order/serializer.py - Orders and payments
order/models.py - Birthday task
order/task.py
Application runtime
- HTTP routes
conf/urls.py - Celery application
conf/celery.py - Django settings
conf/settings.py - SQLite database
Other components
- Shopper
- SMTP mail service
Connections 27
- Shopper → HTTP routes: sends requests
conf/urls.py - HTTP routes → Account endpoints: routes account
conf/urls.py - HTTP routes → Catalog endpoints: routes catalog
- HTTP routes → Order endpoints: routes orders
- Account endpoints → Account serializers: validates data
account/views.py - Account serializers → Users and OTPs: reads and writes
account/serializer.py - Account endpoints → Users and OTPs: loads profile
account/views.py - Account endpoints → Role permissions: checks access
account/views.py - Account serializers → SMTP mail service: sends OTP
account/serializer.py - Catalog endpoints → Catalog serializers: serializes products
content/views.py - Catalog endpoints → Catalog filters: filters listings
content/views.py - Catalog endpoints → Products and variants: queries catalog
content/views.py - Catalog serializers → Products and variants: serializes catalog
content/serializer.py - Order endpoints → Order serializers: validates orders
order/views.py - Order endpoints → Orders and payments: queries orders
order/views.py - Order endpoints → Catalog filters: uses product filters
order/views.py - Order endpoints → Role permissions: checks access
order/views.py - Order serializers → Orders and payments: creates payments
order/serializer.py - Order serializers → Catalog serializers: serializes variants
order/serializer.py - Order endpoints → Birthday task: dispatches task
order/views.py - Birthday task → Celery application: uses task app
order/task.py - Account endpoints → SMTP mail service: stores uploads
- Django settings → SQLite database: configures SQLite
conf/settings.py - Users and OTPs → SQLite database: persists records
- Products and variants → SQLite database: persists catalog
- Orders and payments → SQLite database: persists orders
- Django settings → Celery application: configures broker