graphcommerce
graphcommerce copied to clipboard
GraphCommerce® is a headless storefront replacement for Magento 2 (PWA), that delivers a faster, better user experience. Fully customizable (React, Next.js) and open-source.
GraphCommerce is an open source front-end framework for building headless Magento e-commerce storefronts in React.
Take a look at the GraphCommerce demo store or set up your local development environment with the instructions below.
https://user-images.githubusercontent.com/1251986/158570386-ea831ae4-f6b8-4776-81b3-d7b121afee9f.mp4
Getting Started
Download the example
-
git clone [email protected]:graphcommerce-org/graphcommerce.git
-
mkdir my-project
-
cp -R graphcommerce/examples/magento-graphcms/. my-project
-
cd my-project
-
cp -R .env.example .env
-
rm CHANGELOG.md
-
rm -r node_modules && rm -r .next
Edit /package.json. Delete "scripts": {...}
and rename scripts_local
to
scripts
:
{
"name": "@my-company/my-project",
"scripts": {
...
}
}
Start the development environment
-
yarn
Install the dependencies -
yarn codegen
Converts all .graphql files to typescript files -
yarn dev
Run the app
Visit the development environment running at http://localhost:3000
Visit the GraphQL Playground running at http://localhost:3000/api/graphql
Contributing to GraphCommerce
Learn how to contribute to GraphCommerce
Next steps
- Learn about the general concepts and file structure of the magento-graphcms example
- Learn more about getting started with GraphCommerce