STEP-1 and 2 Creating Magento 2 Module

STEP-1arrow-up-right

Let’s Create Empty Module Folder app/code/ScandiPWA/SocialShareGraphQl ScandiPWA is [VENDOR] module provider SocialShareGrpahQl [MODULE_NAME]

STEP-2arrow-up-right

Now we going to create a blank Magento module and register it in Magento

  1. For that let’s create an etc folder in app/code/ScandiPWA/SocailShareGraphQl <- feather in text <MODULE ROOT>

  2. In <MODULE ROOT>/etc we need to create file module.xml with the following content

3. Create registration.php in <MODULE ROOT>

4. Now we need to run setup:upgrade and find our module in output if you are running CMA setuparrow-up-right open console in <PROJECT ROOT> run npm run cli and thenm set:up

Congrats!! useful material: Create a new Magento 2 modulearrow-up-right Working with Magento modulesarrow-up-right Create Magento Apparrow-up-right

Last updated