Add Django backend, 1C integration, deploy config and API docs

Backend (Django 4.2 + DRF):
- accounts: phone OTP login, JWT, profile, addresses
- catalog: categories, products, images, filters, search, hits/new/related
- orders: creation with Idempotency-Key, stock reservation, status history, cancel
- loyalty: bonus accounts, promo codes, gift certificates
- payments: payment records and YooKassa webhook handling
- content: static pages, banners, site settings
- integration: 1C exchange (catalog sync, order push via outbox, statuses, bonuses)
- common: error envelope, pagination, request-id, integration auth, admin dashboard

Infrastructure: Dockerfile, docker-compose (Postgres, Redis, Celery worker/beat, Nginx),
requirements split by environment, OpenAPI contracts for site and 1C, architecture doc.

Tests: 22 pytest cases covering catalog, orders, idempotency, OTP, integration.
This commit is contained in:
apuc committed 2026-11-22 21:54:16 +03:00
1 parent 5f8d37357d
commit 756f40353b
130 files changed
+10066

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
Django==4.2.16
djangorestframework==3.15.2
djangorestframework-simplejwt==5.3.1
drf-spectacular==0.27.2
django-filter==24.3
django-cors-headers==4.4.0
celery==5.4.0
redis==5.0.8
psycopg[binary]==3.2.1
python-dotenv==1.0.1
Pillow==10.4.0
phonenumbers==8.13.42
requests==2.32.3
+5
View File
@@ -0,0 +1,5 @@
-r base.txt
pytest==8.3.2
pytest-django==4.9.0
factory-boy==3.3.1
ruff==0.6.5
+3
View File
@@ -0,0 +1,3 @@
-r base.txt
gunicorn==22.0.0
sentry-sdk==2.13.0