Introducing you a simple Magento 2 module creator.
Simply clone or download and unpack module to your Magento 2 'app/code' folder(full path should looks like - 'app/code/Ihb/ModuleCreator').
Then go to Magento 2 root folder and run php -f bin/magento setup:upgrade to activate Module Creator.
Add repository url to the root composer.json file example:
"repositories": [
...
{
"type": "git",
"url": "https://github.com/ihb/ModuleCreator"
}
...
]
Run composer require ihb/modulecreator:dev-master.
Run php -f bin/magento setup:upgrade to activate Module Creator.
After Module Creator activated, just run php -f bin/magento ihb:module-create Vendor_Module command. This will
create simple module structure in app/code/Vendor/Module folder.
You can test your module in test controller. Go to http://<your-domain/<vendor><moduleName>/index/index url, it's should
return simple test message.
Feel free to change anything you want to increase Module Creator functionality.