This blog post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer support team.
SharePoint Apps provides a great deal of flexibility and how much we can do with it. Using WebTemplate we can direct AppWeb (the SPWeb under which the App is hosted) to use any other Site Template instead of out of box “App” SiteTemplate.
All restrictions and other attributes that applies to WebTemplate in SharePoint 2010 or SharePoint 2013 sites, applies to WebTemplate in SharePoint Apps.
For information on WebTemplate in SharePoint apps see below article
For WebTemplates in SharePoint 2010 see below article
For this walkthrough we will apply Team Site (STS#1) template to Appweb that gets provisioned when SharePoint hosted app is deployed in onprem. Below are the steps
Hope this helps!