Content-Length: 330574 | pFad | http://github.com/arslanramay/django-ecommerce-storefront/#start-of-content

1D GitHub - arslanramay/django-ecommerce-storefront: Python Django eCommerce Store
Skip to content

arslanramay/django-ecommerce-storefront

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Storefront Project - Technical Documentation

This document serves as the technical documentation for the Storefront project. It provides an overview of the features implemented, along with details of the files changed and links to related commits. This documentation is designed to help track the progress of the project and serve as a reference for future development.


Table of Contents

  1. Overview
  2. Features Implemented
  3. Database Schema
  4. REST API Endpoints

Overview

The Storefront project is a Django-based e-commerce platform that provides APIs for managing products, orders, customers, and more. It uses Django REST Framework (DRF) for building APIs and integrates with third-party libraries like Djoser for authentication.


Features Implemented

1. Orders API

Description:
The Orders API allows customers to place orders, view their order history, and manage order items.

Key Changes:

Files Changed:

Related Commits:


2. Cart Management

Description:
The Cart Management feature allows customers to add, update, and remove items from their shopping cart.

Key Changes:

Files Changed:

Related Commits:


3. Product Management

Description:
The Product Management feature provides APIs for listing, creating, updating, and deleting products.

Key Changes:

  • Added Product and Collection models in store/models.py.
  • Created ProductSerializer in store/serializers.py.
  • Implemented tax calculation logic in ProductSerializer.calculate_tax().

Files Changed:

Related Commits:


4. Customer Management

Description:
The Customer Management feature allows managing customer profiles and their associated data.

Key Changes:

Files Changed:

Related Commits:


5. Authentication and Authorization

Description:
Integrated authentication and authorization using Djoser and JWT.

Key Changes:

  • Configured SIMPLE_JWT in storefront/settings.py.
  • Customized Djoser serializers for user creation and management.

Files Changed:

Related Commits:


6. Reviews API

Description:
The Reviews API allows customers to leave reviews for products.

Key Changes:

Files Changed:

Related Commits:


7. Debug Toolbar Integration

Description:
Integrated Django Debug Toolbar for performance monitoring and debugging.

Key Changes:

  • Added debug_toolbar to INSTALLED_APPS in storefront/settings.py.
  • Configured middleware and URLs for Debug Toolbar.

Files Changed:

Related Commits:


Database Schema

The database schema includes the following key models:

  • Product
  • Collection
  • Customer
  • Order
  • OrderItem
  • Cart
  • CartItem
  • Review

Refer to the migrations folder for detailed schema changes: store/migrations/.


REST API Endpoints

Here are some of the key API endpoints implemented:

Products

  • GET /store/products/ - List all products.
  • POST /store/products/ - Create a new product.

Orders

  • POST /store/orders/ - Create a new order.
  • GET /store/orders/ - List all orders for the authenticated user.

Cart

  • POST /store/cart/items/ - Add an item to the cart.
  • PATCH /store/cart/items/<id>/ - Update the quantity of a cart item.

Reviews

  • POST /store/products/<id>/reviews/ - Add a review for a product.

This documentation will be updated as new features are implemented.









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/arslanramay/django-ecommerce-storefront/#start-of-content

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy