If you are getting started with App or Microsoft SharePoint Server 2013 development, you will notice that there is no option in Visual Studio 2012 when you first install it.
you need to install Microsoft Office Developer Tools for Visual Studio 2012 available in the below location.
Visual Studio 2012 Install the below components, below links will directly install the components to your development machine. if internet is not available on the machine then download the components in some location and install in Dev machine.
Microsoft Identity Extensions Microsoft Identity Extensions Workflow Manager Client 1.0 Workflow Manager Client Microsoft Exchange Web Services 2.0 Microsoft Exchange Web Services Microsoft Windows Identity Foundation SDK 4.0 Microsoft Windows Identity Foundation SDK Microsoft SharePoint Client Components
Microsoft SharePoint Client Components Microsoft Office Developer Tools for Visual Studio 2012 - RTM Microsoft Office Developer Tools Download Web Deployment Tool from the below technet location. Web Deployment Tool Installation Once these items have been downloaded and installed on your development machine you will see that there is the option to create Apps and other items for Office and SharePoint 2013.
If you try to create a project, you will get the following error:
An error occurred whilst trying to load some required components, Please ensure the following prerequisite components are installed.
Microsoft Web Developer Tools
Microsoft Exchange Web Services"
In order to resolve this issue, u need to install Microsoft Web Platform Installer
If you have already installed the Microsoft Exchange Web Services, uninstall it from Control Panel.
Download the component from the below location
EwsManagedApi32 Open command prompt and navigate to the tool location. then pass the parameter this is Important without this install will fail.
addlocal="ExchangeWebServicesApi_Feature,ExchangeWebServicesApi_Gac"
Tada ur ready to install SharePoint 2013 Apps