With sencha cmd application is automatically generated and the logic is that given view is set as the first window. There is also automatically generated index.html as start