{"id":18465384,"url":"https://github.com/scandipwa/shopware-pwa","last_synced_at":"2025-04-15T21:19:41.455Z","repository":{"id":44439936,"uuid":"365955240","full_name":"scandipwa/shopware-pwa","owner":"scandipwa","description":null,"archived":false,"fork":false,"pushed_at":"2021-05-24T08:20:13.000Z","size":2202,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T01:23:37.784Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scandipwa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-05-10T07:28:12.000Z","updated_at":"2023-07-17T16:02:13.000Z","dependencies_parsed_at":"2022-08-20T14:50:45.298Z","dependency_job_id":null,"html_url":"https://github.com/scandipwa/shopware-pwa","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scandipwa%2Fshopware-pwa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scandipwa%2Fshopware-pwa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scandipwa%2Fshopware-pwa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scandipwa%2Fshopware-pwa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scandipwa","download_url":"https://codeload.github.com/scandipwa/shopware-pwa/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249154230,"owners_count":21221374,"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","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":[],"created_at":"2024-11-06T09:12:57.355Z","updated_at":"2025-04-15T21:19:41.437Z","avatar_url":"https://github.com/scandipwa.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scandi X Shopware React Storefront\n\nThe storefront to be proud of.\n\n## Installation\n\nCurrently, the only installation option available is git clone, which should only be used for contribution. Once the application is complete, the single-command-bootstrapper will be deployed.\n\nContribution setup (you can also use fork instead of original repository):\n\n```bash\n# clone the repository\ngit clone git@github.com:scandipwa/shopware-pwa.git\n\ncd shopware-pwa\n\n# install dependencies\nyarn \n\ncd packages/blank-theme\n\n# run Next project\nyarn dev\n```\n\n## Overview\n\nThis project is a modular storefront for [Shopware 6](https://www.shopware.com/en/products/shopware-6/), built with native API.\n\nIt is an \"abstract\" blank theme built using [Next](http://nextjs.com/) and [React](http://react.com/). It contains no styling code, and all functionality is splitted into small modules, each encapsulating a single entity or entity-relation.\n\nThis product is not monolythic, it is modular. It means more flexibility, as module (it's functionality) can be disabled or swapped at any given moment.\n\n## Structure\n\nThis project currently implements functionality of following enitities in following modules:\n\n| Entity name | Location |\n|-|-|\n| SEO-URL | `packages/seo-url` |\n| CMS | `packages/cms` |\n| Category | `packages/category` |\n| Product | `packages/product` |\n| Landing | `packages/landing` |\n\n### Folder structure\n\nMost modules contain the following folder structure:\n\n- `api` - the folder to contain requests and typings\n- `context` - the folder to contain Context and Context Providers\n- `component` - the folder to contain layouts and templates\n- `plugin` - the folder to contain functionality integration\n\n## Concepts\n\nIt's important to understand following concepts before starting the development:\n\n- **A theme** – the collection of extensions styled to have a different appearance. Themeing is done by [shadowing files](https://docs.mosaic.js.org/themes/parent-themes).\n\n- **An extension** – a standalone module, that implements an entity. It contains functioanlity and integration. But modules should not countain styles.\n\n- **A plugin** – is a code located in `plugin` folder. That code is injected into the application, and intercepts some function, method or property call. The plugins are always bound to some namespace.\n\n## Data-flow\n\nIn general, data-flow is as simple as:\n\n1. URL is passed to SEO-URL module to determine the URL type.\n2. For current URL entity type, the specific entity layout and context is rendered.\n\n### CMS\n\nFor CMS, we render `sections`, `blocks` and `slots` one in another, thus achieving the rendered CMS tree.\n\nWe lookup the implementation for each entity type in `CmsContentFactory` properties. Plugins from other modules inject these values in, to provide support for different CMS modules.\n\n### Products\n\nFor products, we have multiple contexts: `FilteringContext` and `ProductListContext`.\n\n- `FilteringContext` is used to synchronize the filtering options with URL.\n\n- `ProductListContext` is used to synchronize the product and aggregations data with the application.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscandipwa%2Fshopware-pwa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscandipwa%2Fshopware-pwa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscandipwa%2Fshopware-pwa/lists"}