How hemantkumarlearning/django-e-commerce-platform works
Project Type and Purpose
• This is a full-stack e-commerce web application built with Django and Django REST Framework (DRF).
• It serves a static HTML/CSS/JavaScript frontend (under frontend/) and exposes a JSON API for product browsing, cart management, authentication, and (future) Stripe payments.
File-Structure Analysis
• Top-level directories:
• ecommerce/ — Django project settings, URL routing, WSGI/ASGI entrypoints
• store/ — Core Django app: models, serializers, views, URLs, migrations, admin
• frontend/ — Static assets (CSS/JS) and Django template files
• Key files:
• manage.py — Django CLI entrypoint
• requirements.txt & Dockerfile — Dependency list and containerization
• ecommerce/urls.py registers API routes (e.g., /api/ and Swagger docs) and template-serving paths
• Architectural patterns:
• MVC (Django handles Models, Views, Templates)
• RESTful API layer (DRF serializers + viewsets)
• Token-based authentication for API security
• Planned external integration: Stripe payment gateway
Essential Details
• Explicitly show the Django project structure: separate “ecommerce/” settings & routing from “store/” business-logic layer.
• Django admin panel as a back-office component.
• Future-state Stripe integration to underscore ongoing development.