{"id":29961650,"url":"https://github.com/pog7x/larek","last_synced_at":"2026-04-11T14:04:47.833Z","repository":{"id":183909739,"uuid":"670939177","full_name":"pog7x/larek","owner":"pog7x","description":"LAREK","archived":false,"fork":false,"pushed_at":"2025-04-11T06:41:56.000Z","size":16041,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T08:50:52.725Z","etag":null,"topics":["celery","celery-rabbitmq","css3","django","django-celery","django-forms","django-rest-framework","djangorestframework","html5","htmx","htmx-django","marketplace","python3","vue"],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pog7x.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-07-26T07:16:36.000Z","updated_at":"2025-04-11T06:41:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"dc9b719f-bfa6-464e-89de-b0e0cf7395bf","html_url":"https://github.com/pog7x/larek","commit_stats":null,"previous_names":["pog7x/larek"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pog7x/larek","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pog7x%2Flarek","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pog7x%2Flarek/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pog7x%2Flarek/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pog7x%2Flarek/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pog7x","download_url":"https://codeload.github.com/pog7x/larek/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pog7x%2Flarek/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268625009,"owners_count":24280188,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["celery","celery-rabbitmq","css3","django","django-celery","django-forms","django-rest-framework","djangorestframework","html5","htmx","htmx-django","marketplace","python3","vue"],"created_at":"2025-08-03T23:12:49.446Z","updated_at":"2026-04-11T14:04:47.820Z","avatar_url":"https://github.com/pog7x.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cpicture\u003e\n    \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"staticfiles/assets/img/logo-light.svg\"\u003e\n    \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"staticfiles/assets/img/logo.svg\"\u003e\n    \u003cimg src=\"staticfiles/assets/img/logo.svg\" alt=\"Larek Logo\" width=\"340\"\u003e\n  \u003c/picture\u003e\n  \u003cp\u003e\u003cstrong\u003eOpen-source Django marketplace — from catalog to checkout\u003c/strong\u003e\u003c/p\u003e\n  \u003cp\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Python-3.13-blue?logo=python\u0026logoColor=white\" alt=\"Python\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Django-6.0-green?logo=django\u0026logoColor=white\" alt=\"Django\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/PostgreSQL-14-blue?logo=postgresql\u0026logoColor=white\" alt=\"PostgreSQL\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Docker-Compose-2496ED?logo=docker\u0026logoColor=white\" alt=\"Docker\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/HTMX-1.27-orange\" alt=\"HTMX\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Celery-5.6-brightgreen?logo=celery\u0026logoColor=white\" alt=\"Celery\"\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n---\n\n## What is Larek?\n\nLarek is a full-featured marketplace web application built with Django. It covers the complete e-commerce flow — product discovery, cart management, order placement, and async payment processing — all in a server-rendered architecture powered by HTMX for snappy, SPA-like interactions without a separate frontend.\n\n---\n\n## Features\n\n- **Product catalog** — filter by price range, category, and availability; sort by popularity, rating, newest, and price; paginated results\n- **Multi-seller support** — each product can have multiple sellers with independent prices and stock levels\n- **Shopping cart** — add, update, and remove items with real-time header/total updates via HTMX\n- **Order \u0026 payment flow** — atomic order creation, UUID-keyed payments, and async payment confirmation via Celery\n- **Browsing history** — tracks per-user product views and uses them for popularity ranking\n- **User accounts** — registration, login, profile editing (avatar, phone, address), password change and reset\n- **Reviews** — authenticated users can leave reviews on products\n- **Banners** — homepage slider with configurable promotional sections (limited offers, popular goods, limited edition)\n- **Admin panel** — full Django admin for managing all entities\n\n---\n\n## Tech Stack\n\n| Layer            | Technology                            |\n| ---------------- | ------------------------------------- |\n| Backend          | Django 6.0, Python 3.13               |\n| Database         | PostgreSQL 14                         |\n| Async tasks      | Celery 5.6 + RabbitMQ 3.11            |\n| Frontend         | HTMX, Bootstrap 5, Swiper, noUiSlider |\n| Static files     | WhiteNoise                            |\n| Containerization | Docker + Docker Compose               |\n\n---\n\n## Quick Start\n\n**Prerequisites:** Docker \u0026 Docker Compose installed.\n\n```bash\n# Clone the repository\ngit clone https://github.com/your-username/larek.git\ncd larek\n\n# Start all services (app, PostgreSQL, RabbitMQ)\ndocker-compose up --build\n```\n\nThe app will be available at [http://localhost:8000](http://localhost:8000).\n\nTo load sample data:\n\n```bash\ndocker-compose exec app python manage.py loaddata fixtures/sample\n```\n\n---\n\n## Development\n\n### Make migrations\n\n```bash\npython manage.py makemigrations user --no-header \u0026\u0026 python manage.py makemigrations --no-header\n```\n\n### Clear all migrations\n\n```bash\npython clear_migrations.py\n```\n\n### Dump database to fixtures\n\n```bash\npython manage.py dumpdata banner cart catalog_category delivery order payment product product_seller review seller user views_history \\\n  --format json --indent 4 --verbosity 1 \\\n  -o fixtures/sample.json \\\n  -e admin\n```\n\n---\n\n## Project Structure\n\n```\nlarek/\n├── larek/\n│   ├── apps/\n│   │   ├── banner/          # Homepage banners\n│   │   ├── cart/            # Cart management\n│   │   ├── catalog_category/# Product categories\n│   │   ├── delivery/        # Delivery options\n│   │   ├── discount/        # Discounts (WIP)\n│   │   ├── order/           # Order management\n│   │   ├── payment/         # Async payment processing\n│   │   ├── product/         # Product catalog \u0026 images\n│   │   ├── product_seller/  # Seller-product pricing\n│   │   ├── review/          # Product reviews\n│   │   ├── seller/          # Seller profiles\n│   │   ├── user/            # Custom user model\n│   │   └── views_history/   # Browsing history \u0026 popularity\n│   ├── settings.py\n│   └── urls.py\n├── templates/\n├── staticfiles/\n├── docker-compose.yml\n└── requirements.txt\n```\n\n---\n\nIf Larek saves you time or sparks ideas, consider leaving a star. It helps a lot.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpog7x%2Flarek","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpog7x%2Flarek","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpog7x%2Flarek/lists"}