The above code will allow you to built a very basic Magento 2 module. Once the module is complete it will show a block on front saying “Hello World”
Please make sure you are using the latest Magent 2 edition that is 2.1. Before starting with the module please make sure the following two requirements are met.
This saves your time as you don’t have manually flush the cache every now and then.
Turn on the development mode so you know that what errors Magento is throwing at you.