This is an Online Shop API built with Django REST Framework. The API provides functionality for managing products, users, orders, and more, allowing for a full-featured online shopping experience.
- User registration and authentication
- Product management (CRUD operations)
- Order management
- Search and filter products
- Django
- Django REST Framework
- drf-nested-routers
- django-filter
- Djoser
- djangorestframework-simplejwt
- factory-boy
- Faker
This project is dockerized for easy development and deployment.
This project has been optimized for performance with the following strategies:
-
Database Query Optimization:
- All critical queries are indexed to enhance retrieval times.
- Used some orm optimization by
prefetch_class
,prefetch_related
,select_related
and other to minimize database hits during operations involving related entities.
-
Benchmark Results:
- Initial loading times have decreased by over 15% compared to earlier versions