Giter VIP home page Giter VIP logo

magento2's Introduction

  

Stay connected

GitHub Repo stars Twitter Follow YouTube Channel Subscribers Discord

Vue Storefront 2 integration with Magento

This project is a Magento 2 integration for Vue Storefront 2.


All Contributors

How to start if you want to try out the integration

Please follow the installation guide

How to start if you want to contribute?

Want to contribute? Ping us on magento2 channel on our Discord!

Requirements:

  • NodeJS v16 or later
  • Yarn (npm is not supprted yet)
  • Magento >= v2.4.3 instance for GraphQL endpoint
  • Change Magento GraphQL Query Complexity and Depth values

Don't forget to change the Magento GraphQL Query Complexity and Depth values Magento 2 by default has a lower value for the complexity of 300, and a higher value for the depth of 20. Magento 2 - Issue #32427

The changes are required, due to the size of the queries and mutations in the api-client implementation.

To do this changes, you can use the Magento 2 module, which adds a configuration panel to your admin, or do this changes manually.

To install the Magento 2 GraphQL Config module, on your Magento installation execute:

composer require caravelx/module-graphql-config

php bin/magento module:enable Caravel_GraphQlConfig

php bin/magento setup:upgrade

php bin/magento setup:di:compile

php bin/magento setup:static-content:deploy

Find more information about the module GraphQl Custom Config

Steps

(Note: Currently only yarn is supported because of workspaces resolving. Do not use npm to install or build the project.)

  1. Fork the repo
  2. Clone your fork of the repo
    git clone https://github.com/vuestorefront/magento2.git && cd magento2
  3. Checkout develop branch
    git checkout develop
  4. Run yarn to install dependencies
    yarn install
  5. Copy .env.example to .env
    cp packages/theme/.env.example packages/theme/.env
  6. Update MAGENTO_GRAPHQL_URL with url to Magento >=2.4.2 GraphQL endpoint, and the other variable accordingly to your store configurations.
    MAGENTO_GRAPHQL_URL=https://{YOUR_SITE_FRONT_URL}/graphql
    
  7. Build dependencies yarn build:api-client && yarn build:composables
    yarn build:api-client && yarn build:composables
  8. Run yarn dev:theme to run theme. You can find other commands in package.json
    yarn dev:theme
  • If you need HMR on Api Client/Composables run yarn dev:api-client or yarn dev:composables on a separate terminal window.

Resources

Support

If you have any questions about this integration we will be happy to answer them on magento2-vsf2 channel on our Discord.

Contributors ✨

Honorable Mentions

Thanks go to these wonderful people 🙌:


Heitor Ramon Ribeiro

💻 🚧 📖 📆

Alef Barbeli

💻 📖

Henrique Lopes

💻 📖

Đại Lộc Lê Quang

💻

Bogdan Podlesnii

💻

Patrick Monteiro

💻

Kevin Gorjan

💻 📖

Bartosz Herba

💻 📖 🚧 🧑‍🏫 👀

Marcin Kwiatkowski

💻 📆 💼 📖 🤔 🚧 🧑‍🏫 👀

Filip Rakowski

💬 🧑‍🏫 👀

Filip Sobol

💬 🧑‍🏫 👀 📖

Patryk Andrzejewski

💬 🧑‍🏫 👀

Renan Oliveira

🔧 🔌

Dominik Deimel

💻 📖

Lior Lindvor

💻

Artur Tagisow

💻 💬 🤔 🚇 🚧 👀 ⚠️ 🔧

Jonathan Ribas

💻

Ali Ghanei

💻

Maya Shavin

📖

Alexander Devitsky

💻

Diego Alba

💻

Abdellatif EL MIZEB

💻

Beniamin Sinca

🐛 💻

maaarghk

💻

Shankar Konar

💻

Bratuniak Oleg

🐛

Drew Michael

🐛

This project follows the all-contributors specification. Contributions of any kind welcome!

magento2's People

Contributors

bloodf avatar frodigo avatar sethidden avatar bartoszherba avatar github-actions[bot] avatar filipsobol avatar vitorluizc avatar kevingorjan avatar filrak avatar domideimel avatar alexanderdevitsky avatar liorlindvor avatar diegoalbag avatar zfmaster avatar roziscoding avatar mkoszut avatar mattmaribojoc avatar web-flow avatar youanden avatar alefbarbeli avatar mayashavin avatar bensinca avatar hcmlopes avatar konarshankar07 avatar maaarghk avatar andrzejewsky avatar wojtekthewebdev avatar tom-aniol avatar renanoliveira0 avatar patrickmonteiro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.