We have requirement that SharePoint hosted app need to add/remove in site when site creation(Site has been created using JSOM). I did't find any article regarding add app programmatically using JSOM.
My app is in appcatalog. I need to add it in site when site provisioning. usually we will do using UI [Site -> Site Content -> Add an app].
Is this possible in JSOM? or can i achieve this in any other way?