220 likes | 501 Views
Building SharePoint 2013 Apps 101. Jerry Yasir SharePoint Server MVP, MCT Sr. SharePoint Architect US Tech Solutions. @ jerry_yasir. Agenda. Introduction Type of Apps Pre-Configuration Demo App Catalog. Evolution of SharePoint Development. 2010. 2007. 2013. SharePoint.
E N D
Building SharePoint 2013 Apps 101 Jerry Yasir SharePoint Server MVP, MCT Sr. SharePoint Architect US Tech Solutions @jerry_yasir
Agenda • Introduction • Type of Apps • Pre-Configuration • Demo • App Catalog
Evolution of SharePoint Development 2010 2007 2013 SharePoint SharePoint SharePoint IIS Sandbox IIS with _api App IIS Code runs from GAC on same w3wp.exeas SharePoint web application Code runs on SPUCWorkerProcess.exe or calls client.svc (CSOM) Code runs outside of SharePoint but has trust to leverage capabilities exposed in _api
What's the Problem Code Based on DLLs Runs on Server Bad Code can effect your farm Upgrading Solutions can be difficult Permissions are difficult to handle Impersonate or not to impersonate or use user permissions
The new cloud app model Build a new class of apps that extendandpersonalizethe way we create and consume information right from within Office and SharePoint New Apps A new class of apps enabling new scenariosand new user experiences Flexible Lifecycle Deploy and maintain your apps publically on the new Office Store,or internally with Flexibility and control Familiar Toolsets Embracing Web standards to provide developers choice and flexibility
Apps for SharePoint Apps for SharePoint are self-contained pieces of functionality that extend the capabilities of a SharePoint website. Apps integrate the best of the web and SharePoint; they are targeted and easy-to-use, and do a great job at solving a user need.
App Hosting Options Cloud SharePoint Your Hosted Site SharePoint Host Web Provider-Hosted App “Bring your own server hosting infrastructure and technology platform” App Web* (separate SharePoint domain) Cloud-based Apps Get remote events from SharePoint Use CSOM/REST + OAuth to work with SP AutohostedApp Windows Azure + SQL Azure provisioned invisibly as apps are installed Azure SharePoint Host Web App Web* (separate SharePoint domain) • SharePoint-Hosted App • Provision an isolated sub web on a parent web (separate domain) • Reuse web elements (lists, files, out-of-box web parts) • No server code allowed; use client JavaScript for logic, UX SharePoint Host Web App Web (separate SharePoint domain) *App Webs are optional in Cloud-Hosted Apps
Guideline SharePoint App Management Configuration
Configuring SharePoint for Apps Development • Office Developer Tools for Visual Studio 2012 • Multitenant SharePoint Deployment • Office 365 • NAPA • Service Application • App Management Service • Site Subscription Management Service
App Installation • Site Scope • Installed on a site called “Host Web” • Tenancy-Scoped Installation • Installed on site called “App Catalog Site” • Single App for All Web
Apps for SharePoint – Things to Know • App Manifest • Permissions • Start Page URL • App Web • Host Web • An App Can not Access Host Web Directly (Prevent Cross Site Scripting) • App-Hosted Domain and App URL
Apps UI • Start Page • App Parts • UI Custom Actions • Cloud Hosted Apps • Chrome Control • Direct CSS Reference using JavaScript
SharePoint Hosted App • Manifested and Lives Inside SharePoint • No Server Side Code Allowed • Consists of ASPX Pages that includes • HTML5, CSS, JavaScript, jQuery • REST and OData
Auto-Hosted App Lifecycle Tenant A Web Site Workflow SQL DB Site Owner Tenant Admin App Developer App Catalog .app .app Web Site Workflow SQL DB Site Owner .app Tenant B Web Site SQL DB Workflow Site Owner SQL DB Web Site Workflow SharePoint Store (Office Marketplace) Site Owner
An Auto-Hosted App Demo
Provider Hosted Apps • Deployment of Remote Web is by Choice • The Deployed to Remote Web on Remote Web Server • Remote Web + Database Must be Deployed First
Takeaways • New Cloud Based App Model • Apps code out of SharePoint • 2 Categories of App • SharePoint Hosted • Cloud Hosted • 3 Types of Apps • SharePoint Hosted Apps • Azure Auto-Hosted Apps • Provider Hosted Apps • Configuration of App Development • App Management Service App + Site Subscription Server + App Domain