All Projects β†’ vuestorefront β†’ Shopware Pwa

vuestorefront / Shopware Pwa

Licence: mit
Shopware PWA for eCommerce. Headless storefront solution for Shopware 6, which communicates through the SalesChannel-API. Always Open Source, MIT license. Made with πŸ’™ by shopware AG & Vue Storefront.

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Shopware Pwa

Vue Storefront
The open-source frontend for any eCommerce. Built with a PWA and headless approach, using a modern JS stack. We have custom integrations with Magento, commercetools, Shopware and Shopify and total coverage is just a matter of time. The API approach also allows you to merge VSF with any third-party tool like CMS, payment gateways or analytics. Ne…
Stars: ✭ 9,111 (+4961.67%)
Mutual labels:  ecommerce, hacktoberfest, pwa
Saleor
A modular, high performance, headless e-commerce platform built with Python, GraphQL, Django, and React.
Stars: ✭ 14,720 (+8077.78%)
Mutual labels:  ecommerce, hacktoberfest, pwa
Storefront Ui
Customization-first, performance-oriented and elegant UI framework for eCommerce (and not only) based on Vue.js and Google Retail UX Playbook. Made with πŸ’š by Vue Storefront team and contributors.
Stars: ✭ 1,827 (+915%)
Mutual labels:  ecommerce, hacktoberfest, pwa
Magento2
All Submissions you make to Magento Inc. ("Magento") through GitHub are subject to the following terms and conditions: (1) You grant Magento a perpetual, worldwide, non-exclusive, no charge, royalty free, irrevocable license under your applicable copyrights and patents to reproduce, prepare derivative works of, display, publically perform, subli…
Stars: ✭ 9,816 (+5353.33%)
Mutual labels:  ecommerce, hacktoberfest
Platform
Shopware 6 is an open source eCommerce platform realised by the ideas and the spirit of its community.
Stars: ✭ 1,267 (+603.89%)
Mutual labels:  ecommerce, hacktoberfest
Maskable
Create and preview maskable icons in the browser!
Stars: ✭ 90 (-50%)
Mutual labels:  hacktoberfest, pwa
Https Localhost
HTTPS server running on localhost
Stars: ✭ 122 (-32.22%)
Mutual labels:  hacktoberfest, pwa
Laracom
Laravel FREE E-Commerce Software
Stars: ✭ 1,570 (+772.22%)
Mutual labels:  ecommerce, hacktoberfest
Storefront Integration Sdk
If You like to integrate Vue Storefront - PWA for eCommerce with 3rd party platform, use this SDK
Stars: ✭ 124 (-31.11%)
Mutual labels:  ecommerce, pwa
Slatwall
Slatwall - An Open Source Commerce Platform
Stars: ✭ 136 (-24.44%)
Mutual labels:  ecommerce, hacktoberfest
Emberclear
Encrypted Chat. No History. No Logs.
Stars: ✭ 157 (-12.78%)
Mutual labels:  hacktoberfest, pwa
Commudle Ng
World's first community management platform. And it's free!
Stars: ✭ 81 (-55%)
Mutual labels:  hacktoberfest, pwa
Shopware
Shopware 5 Repository - For Shopware 6 visit https://github.com/shopware/platform
Stars: ✭ 1,197 (+565%)
Mutual labels:  ecommerce, hacktoberfest
Generator Ngx Rocket
πŸš€ Extensible Angular 11+ enterprise-grade project generator
Stars: ✭ 1,329 (+638.33%)
Mutual labels:  hacktoberfest, pwa
Laravel Ecommerce
AvoRed an Open Source Laravel Shopping Cart
Stars: ✭ 1,151 (+539.44%)
Mutual labels:  ecommerce, hacktoberfest
React Most Wanted
React starter kit with "Most Wanted" application features
Stars: ✭ 1,867 (+937.22%)
Mutual labels:  hacktoberfest, pwa
Bikedeboa
A (Progressive) Web App to find, map and review bike parkings in the cities of Brazil.
Stars: ✭ 54 (-70%)
Mutual labels:  hacktoberfest, pwa
Odoo Shopinvader
Odoo Modules. Sorry Magento, Shopinvader is coming
Stars: ✭ 60 (-66.67%)
Mutual labels:  ecommerce, hacktoberfest
Cezerin
Cezerin is React and Node.js based eCommerce platform.
Stars: ✭ 1,985 (+1002.78%)
Mutual labels:  ecommerce, pwa
Sylius Standard
Open Source eCommerce Application on top of Symfony
Stars: ✭ 165 (-8.33%)
Mutual labels:  ecommerce, hacktoberfest

Shopware PWA

CircleCI Coverage Status Snyk badge

Documentation


The only Official Progressive Web App for Shopware 6.

About Shopware:

Shopware 6 is the next generation of open-source eCommerce software based on bleeding-edge technologies powered by Symfony and Vue.js. Focused on an API-first approach, Shopware provides more flexibility and less complexity.

PS: Check StorefrontUI - our UI library for eCommerce.

See it in action

B2C Theme demo Try out our open demo and if you like it first give us some star on Github β˜… and then contact us on #shopware-pwa channel @ Vue Storefront Official Slack or via [email protected]

This demo site is connected to Shopware 6.

See the documentation to get started.

Video demo

See video demo!

Join the community on Slack

If you have any questions or ideas feel free to join our slack: https://vuestorefront.slack.com via invitation link

Quickstart

Before you start testing it locally, try it out on CodeSandbox (including shopware-pwa CLI commands in embedded terminal)

Edit shopware-pwa v0.5.x v0.5.x

Usage

Create a directory for your project and enter it

mkdir my-shopware-pwa
cd ./my-shopware-pwa

initialize project inside the directory

npx @shopware-pwa/[email protected] init

It will ask for the address to yous shopware instance, access token, and admin credentials to load plugins. Only the first two are required to start the instance, and default settings will point to our demo instance. Then you can just begin local development by typing:

yarn dev

Your application will be available on http://localhost:3000.
Now you have complete ShopwarePWA project running locally.

Running on custom Shopware instance

You can simply invoke once again shopware-pwa init and pass data to your custom instance.

Another way of doing this:

  1. edit file shopware-pwa.config.js inside the root of the newly created project
  2. fill it with your data, current example:
module.exports = {
  shopwareEndpoint: "https://shopware6-demo.vuestorefront.io",
  shopwareAccessToken: "SWSCVJJET0RQAXFNBMTDZTV1OQ",
};
  1. run again npx @shopware-pwa/[email protected] init (to refresh plugins from instance) and then yarn dev

Read full instruction in CHEATSHEET.md file.

Running with plugins

If you already have some Shopware PWA plugins installed (like HelloCody plugin example), then you can generate plugin files

npx @shopware-pwa/[email protected] init

or, for CLI installed globally

shopware-pwa init

Will ask you for username and password for shopware instance, to load installed plugins.

Development and contribution

When you create fork and clone repo, just type yarn start to install node dependencies and run the post-install script that builds and links packages, it also creates a test-project in root catalogue, which is ignored by git. Now, you're ready to develop. You can watch the compilation process by running yarn dev or yarn dev:<package-name>to specify the package that you will be working on. It also builds all necessary packages and

Please, remember to always during development have opened terminal with yarn test --watch command fired.

To see the project, go to ./test-project and run yarn dev. The project will be available in your browser at http://localhost:3000. You can test changes directly in ignored test-project directory or make changes inside packages (for example default-theme).

A more advanced development guide will be available soon.


Troubleshooting

Common issues with solutions are kept in troubleshooting page.


Introduction to Shopware-PWA

What is Shopware-PWA?

It is a product, that will allow Shopware users to quickly set up a headless storefront for Shopware 6 eCommerce systems. It will provide all the PWA benefits like app-like experience, on-mobile-installation, service worker caching and more. Shopware-PWA by default will is equipped with a ready-to-go theme built on StorefrontUI.

It is a native integration dedicated for Shopware 6, which means all the Shopware developers will not have to learn new approaches and naming conventions. The goal of the product is to keep the entry threshold as low as possible to make further implementations fast and straightforward. The product will be compatible with the Shopware 6 Plugins Ecosystem.

Tech stack

What is Shopware-6-Client Library?

This is one of the critical components in Shopware-PWA architecture. It is a separate package built for TypeScript community to allow them to work with Shopware 6 API. It provides all the methods to work with SalesChannel-API of Shopware 6. Shopware-PWA uses that package for communication with Shopware backend.

What is StorefrontUI?

It is an excellent design system for the UI layer of your eCommerce systems. Storefront UI is an independent, Vue.js-based, the library of UI components for developers, designers, and agencies striving to build fabulous storefronts.

Read more: https://www.storefrontui.io/.

Caching approach

In Vue Storefront 1, we provided full offline support.

In Shopware-PWA we will go for a service worker caching. That means the product will use Shopware 6 logic through API instead of recreating all of the business logic in the frontend layer.

However, service workers will allow you to browse the catalogue offline.


Software engineering standards

Before starting the implementation of Shopware-PWA, we’ve made an in-depth analysis of all our previous experience, that we earned during the implement of Vue Storefront 1. After gathering all the lessons learnt, we decided to build a tech-driven high-quality product, that will meet the business needs.

Style Guide

We follow official VueJS coding standards - https://vuejs.org/v2/style-guide/.

We also setup Prettier (https://prettier.io/) on git pre-commit hook to automatically format all the code before pushing it to the remote repository. This way, we make sure that all the code’s been written using the same standards. It makes the process of learning the codebase of the product much easier and smoother for all the new developers.

Coding standards

DO

Designing
  • Always start working on a task by designing a view (define goals β†’ state β†’ actions).
  • Every team member must accept "API interface".
Coding
  • Follow official Vue.js style guide https://vuejs.org/v2/style-guide/
  • Use Prettier locally.
  • Run Linter before commit.
  • Always change data by mutations.
  • Log interactions with cache as this are hard to debug.
  • Use Chrome debugger. Do not leave thousands of console.log().
  • Use async awaits instead of promises.
Testing
  • Write tests in Jest.
  • Create one test file per method.
Tools
  • Use Axios for handling HTTP requests.
  • Experiment with Live Share for pair programming.
Code review
  • At least one core team member must do a code review
Environment
  • Always fix failing builds in CI as the top priority.
Committing
  • Self-CR before commit. Do not assume others will check your dirty work.
  • Delete pointless console.log() before commit.
  • Adjust to commit message criteria to auto-generate changelog.

DO NOT

  • Do not keep tokens in Vuex.
  • Do not use EventBus.
  • Do not make direct calls to UI from Vuex.
  • Do not create callbacks hell. Do not overuse promises.

Definition of Ready

User Stories

  • Simplified User Story format to describe the issue is used - e.g., I want to <goal> So that <reason>.
  • Epic (label) is assigned (the epic provides team members with background information and additional business value).
  • Acceptance criteria are listed.
  • Dependencies are identified, and no external dependencies would block the item from being completed (e.g. missing decision/information/implementation from other departments/development teams or missing tools).
  • The user story is small enough to be completed in one sprint.
  • The team knows what to do and do not see any blocking points.

Bugs

  • The current behaviour is explained.
  • Steps to reproduce are explained.
  • The expected behaviour is defined.
  • If possible, screenshot or gif is provided.

Definition of Done

User Story
  • All acceptance criteria are fulfilled.
  • Code does not destroy build.
  • All unit tests pass.
  • Code meets our Coding standards.
  • QA verifies the user story.
  • The user story is tested on the newest browsers and newest-1 versions.
  • At least minimal documentation is created.
Bugs
  • Regression unit test is created.

Pipeline & Continuous integration / delivery / deployment

We use CircleCI for continuous integration tool. In the pipeline, we run a few necessary checks, and we check if the unit tests coverage did not decrease and we rebuild the application to verify if the new code does not break up the build.

Test coverage

In the early stages of the development, we decided to keep 100% of unit tests code coverage. That means you will not be surprised by the changed behaviour of the methods in your storefront product. If you break it, you will be notified by the tests.

In the next phases of development, we will make the following decisions associated with testing. We will probably cover critical paths with end2end testing.

Right now, for testing, we use the Jest framework - https://jestjs.io/.

Versioning

Versioning of Shopware-PWA is not dependent on Shopware 6 versioning. We will stick to semantic versioning. As we build the package - all the packages for Shopware 7 (and so on) will have separate versioning.

Change log

We experimentally use conventional commit messages to generate the changelog automatically. https://www.conventionalcommits.org


Checklists

Performance QA Checklist

  • Bundle size verified with webpack-bundle-analyzer.
  • Size lower than 300 kB for JS loaded immediately.
  • Everything that may exceed 300 KB must be lazy-loaded.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].