GraphCommerce is a front-end framework used for building headless Magento e-commerce storefronts in React.js.
Dependencies
- Install and use node 14:
nvm install 14 && nvm use 14 - Install yarn:
npm install --global yarn
Getting started
Installation
git clone git@github.com:graphcommerce-org/graphcommerce.gitmkdir my-projectcp -R graphcommerce/examples/magento-graphcms/. my-projectcd my-projectcp -R .env.example .envrm CHANGELOG.md && touch CHANGELOG.mdrm -rf node_modules && rm -rf .next
Edit /package.json. Delete "scripts": {...} and rename scripts_local to
scripts:
Start the development environment
-
yarnInstall the dependencies -
yarn codegenConverts all .graphql files to typescript files -
yarn devRun the app
Visit the development environment running at http://localhost:3000
That's it! GraphCommerce includes Magento-specific React components, pages, and utilities for building a high-end Magento PWA storefront.
👉 To connect to your own Magento backend, refer to the GraphCommerce installation instructions
Top comments (0)