Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have to run code for creation of lists in SharePoint site (Host-web) when my SharePoint Hosted app is installing. I have 3 to 4 App-parts in my App.
Create your script file and give reference of the file on first page which will load while installing your app. The reference should be like this
Required, but never shown