Saturday 28 June 2014

SharePoint App Development

What is SharePoint App?
A) A solution that carries a light footprint and uses standards-based technologies such as HTML5, JavaScript, and OAuth.
Apps have a light footprint because they don't actually install on the host server, and that means they don't overload a SharePoint site with excessive API calls.
Life cycle for app for SharePoint development
A)start, design, develop, and publish
What is host web, App web?
A)
The special website to which the app is deployed is called an app web. The website to which the app is installed is called the host web.
Deployed environment is called: App web
Installed environment is called: Host web
Although the app web has its own isolated domain, it is in the same site collection as the host web. (One exception to this rule is when the app is installed with
tenant scope. In that scenario, the app web is in the site collection of the corporate app catalog.)
Can i write server code in SharePoint hosted app?
A)You can use only JavaScript in the app—you can’t use any server-side code.
App Hosting Technics?
A)
1.SharePoint-hosted apps
2.Provider-hosted apps
3.Auto host
After installing SharePoint hosted app, where can i find the app?
A) We can find at Site Contents page.
SharePoint hosted app?
A) SharePoint-hosted apps, or apps where all components are hosted on either an on-premises or Office 365 SharePoint farm. SharePoint-hosted apps are installed on a
SharePoint 2013 website.
Deployed environment is called: App web
Installed environment is called: Host web
SharePoint hosted apps will deploy in App web, which is sub site of Host web site collection.
SharePoint hosted apps will installed in Host web, which is SharePoint Site collection.
Why SharePoint components are deployed to app webs? not on Host web?
A)because of security.
In the model for apps for SharePoint, an app has its own identity and it has permissions that are not necessarily the same as the permissions of the user who is
executing the app.These app permissions are requested when the app is installed and granted by the person who installs the app, as long as person has all the
permissions that the app requests. (If the user who is installing the app does not have all the permissions that are requested by the app, the user cannot install the
app.).By giving each app its own domain, SharePoint 2013 can reliably identify requests made by the app and verify the permissions of the app.
Modern browsers support a "same origin policy" with regard to JavaScript method calls. By deploying each app for SharePoint to its own domain, SharePoint takes
advantage of the browser's same origin policy to ensure that JavaScript in the app for SharePoint cannot execute any JavaScript from any other domain, including the
domain in which, from the end-user's perspective, the app is installed.
What is Provider-hosted apps?
A)Provider-hosted apps for SharePoint include components that are deployed and hosted outside the SharePoint farm. They are installed to the host web, but their remote
components are hosted on another server.
We can use: Any language supported by your web server or hosting service.
We can use one of the SharePoint client object models, the JavaScript cross-domain library, or the SharePoint 2013 REST/OData-based web service to interact with
SharePoint.
How the app gets authorized: OAuth or the JavaScript cross-domain library