Skip to content

E-commerce API using Python and Django REST Framework.

Notifications You must be signed in to change notification settings

rohn21/e-commerce_drf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

E-commerce API using Python, Django

This APIs includes building an e-commerce api using Django REST Framework to manage Customers, Products, and Orders.

This webapp can handle multiple customers along with multiple orders using table relations and keys. Each orders can contain multiple products with several quantities.

It also includes some custom serializers validations related to the API e.g. unique products, limited products,orders weight. To handle orders, nested serializers used for better code optimization and readability.

Additionally, GenericAPiViews are being used for handling views and routes. it contains url filters for example orders based on customer_name and product_name.

Installation

clone the repo

  git clone https://github.com/rohn21/e-commerce_drf.git
  cd e_commerce_api

Usage/Examples

Database migration

python manage.py makemigrations

python manage.py migrate

To run the server

python manage.py runserver

Releases

No releases published

Packages

No packages published

Languages