I created a provider-hosted app, with a MVC webapplication. Inside my SharePoint project, I created fields, contenttypes and lists. But now I need a solution for this.
1) I need to create permissionlevels, permissions and groups. Code for this is not the issue... lots of examples on internet. But how to ACTIVATE the code automatically on deployment. Since provider-hosted apps don't have EventReceivers with a "app installed" event.
2) I need to add an "approval workflow" to one of the lists. Same problem as above, is that it should be activated on deployment. + Code examples for how to activate the workflow are welcome!