SharePoint Pals
 | Sign In
Preparing the SharePoint 2013 development environment for App Development (SharePoint Hosted App).
by Sathish Nadarajan 22 Oct 2013
Author
SharePoint MVP
Visits   
Today  :   10     Total  :    14448

In this article, let us see, how to prepare the SharePoint 2013 development environment for the App Development with a sample of a SharePoint Hosted Application. Before creating a SharePoint hosted app, we need to make sure that certain activities are done. Let us see them step by step.

By this time, there are a lot of articles regarding the App development Model in SharePoint 2013. But even then, we will also discuss about them for our understanding and comfort.

As usual, let us go by the order in which the things needs to be done before open our visual studio for the first SharePoint Hosted App.

1. Make sure the Services are running.

a. There are 2 services which needs to be ran for SharePoint Apps to get executed.

    • SharePoint Administration Service
    • SharePoint Timer Service

b. To verify them, we can go to the Services.msc.

image

c. The same can be done by command prompt also. Open the command prompt as Administrator and type the following commands.

    • Net start spadminv4
    • Net start sptimerv4

image

2. Make sure the following Service Applications are running.

a. There are 2 service applications and the services on the SharePoint server needs to be ran.

i. App Management Service Application

ii. Subscription Settings Service Application

b. For that, we need to create Service Application for these 2. For App Management Service Application, we can go with the Central Administration. But considering the Subscription Settings, we need to go with only PowerShell. Hence, we will go with the PowerShell for both the option first. Follow the steps in the PowerShell IDE.

i. Create a Managed Account.

ii. Create an Application Pool, Database for the above mentioned 2 Service Application.

iii. Create the Service Application and Service Application Proxy.

iv. Make sure that these 2 service applications are running.

c. Let us see the steps with the power shell first.

  # Create a Managed Account
 
 $account = New-SPManagedAccount
 
  # Get the same Managed Account
 
 $account = Get-SPManagedAccount "domain\user" (ex : SS.Loc\Administrator)
 
 # Create a App Pool or Subscription service
 
 $appPoolSubSvc = New-SPServiceApplicationPool -Name SettingsServiceAppPool -Account $account
 
 # Create a App Pool for App management Service
 
 $appPoolAppSvc = New-SPServiceApplicationPool -Name AppServiceAppPool -Account $account
 
 # Create a Service Applications
 
 $appSubSvc = New-SPSubscriptionSettingsServiceApplication –ApplicationPool $appPoolSubSvc –Name SettingsServiceApp –DatabaseName SettingsServiceDB 
 
 $proxySubSvc = New-SPSubscriptionSettingsServiceApplicationProxy –ServiceApplication $appSubSvc
 
 $appAppSvc = New-SPAppManagementServiceApplication -ApplicationPool $appPoolAppSvc -Name AppServiceApp -DatabaseName AppServiceDB
 
 $proxyAppSvc = New-SPAppManagementServiceApplicationProxy -ServiceApplication $appAppSvc

d. This will Create the Service Applications. To verify them, run the following commands.

 Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"} | Start-SPServiceInstance

image

 Get-SPServiceInstance | where{$_.GetType().Name -eq "AppManagementServiceInstance" -or $_.GetType().Name -eq "SPSubscriptionSettingsServiceInstance"}

image

e. The same can be verified through the Central Administration also.

image

image

3. Create an App-Prefix.

a. PowerShell Script

 Set-SPAppSiteSubscriptionName -Name "app" -Confirm:$false

b. Central Administration

image

image

 

4. Setting the AppDomain for the SharePoint 2013 Apps.

Creating either a new subdomain or creating a CNAME alone will do this. There are already many articles related to this and even if it requires, we can go with a separate article for this. Because it will deviate from our main topic.

Once, the AppDomain is created, map it on the Central Administration.

 

image

 

With this, we are good to go with the SharePoint Hosted Apps. With the above mentioned settings, we can go with the App Development Model. Let us see, how to create a SharePoint Hosted Application in the coming articles. Thanks.

 

 

Regards,

Sathish Nadarajan.

blog comments powered by Disqus

SharePoint Pals

Pals
SharePoint Pals, a community portal for SharePoint developers, Administrators and End Users. Let's join hands and share the point together.
Read this on mobile

Training

Angular Js Training In Chennai
Advanced Angular Js training with real world developer scenarios
Angular Js, Web Api and Ionic for .Net Developers
All in one client side application development for .Net developers
Angular Js For SharePoint Developers
Get ready for the future. Its no more just C#

Get Connected

SharePoint Resources

SharePoint 2013 and 2010 Web Parts
Free Web Parts with Source Code for SharePoint Community




SharePoint 2013 Books and Tutorials
Collection of free SharePoint 2013 books and tutorials (eBooks, pdfs)

Supported By

Contribute your article and be eligible for a one month Free Subscription for Plural Sight. The Author of the most popular New Article (published in the previous month) will be awarded with a Free One month Plural Sight Subscription. Article can be sent to articles@sharepointpals.com in a word document.

Related Resources

Recent Tweets

Twitter January 15, 00:25
How To Enable Target Value And Actual Value In #D3 Gauge Chart https://t.co/VxSi4QnNrC

Twitter January 15, 00:24
How To Open #SharePoint List Hyperlink Column In Modal #Popup Window https://t.co/EQ7HkoZDkX

Twitter January 15, 00:24
Quick Introduction To #Asp.NetCore And It’s Features https://t.co/zAXObHCFpH

Twitter January 15, 00:22
How To Configure #PerformancePoint Services To Use Secure Store In #SharePoint 2013 https://t.co/LEwnUoI7EY

Twitter January 15, 00:21
How To Block Or Disable #Office365 Services https://t.co/Yvp2VPFIRP

Follow us @SharePointPals
Note: For Customization and Configuration, CheckOutRecent Tweets Documentation