Introduction
Now that we have installed and configured Magento 2, we will see the basics on how to create a new Magento 2 extension. If you are familiar with creating an extension for Magento 1.x, you will notice that there are some concepts that look a lot like how it is done in Magento 1. However, as the code is a completely new framework, there are also lots of changes in the module structure and necessary files.
Some of the major changes that change the way a extension is created are as follows:
A new module structure: The directory structure has changed, moving all parts of an extension into a single container, and files are no longer spread between different locations. This makes it easier to maintain an extension.
Configuration files: In Magento 2, the configuration of an extension is split into multiple smaller files that are validated by an XML Schema Definition (XSD) schema. Additionally, some configuration files can be area-specific (adminhtml, frontend, cron, and api) to overwrite...