SharePoint 2013 Building App Local development environment

Source: Internet
Author: User

Original: SharePoint 2013 building app Local development environment

With SharePoint apps, if you want to distribute SharePoint-related applications through the application catalog, such as a SharePoint-related application with Full Control permissions (you can't deploy to an Office 365 site), You will need to use SharePoint 2013, which is fully installed on the local computer. In this article, we provide the steps to set up a local installation of SharePoint 2013 and to start developing a SharePoint-related application.

First, pre-configuration preparation

1. Make sure that SharePoint 2013 is installed and if it is not installed, refer to the attached installation tutorial.

2. Make sure to configure the app Management Service and user profile application. The steps are as follows:

A. In central administration, under Application Management, select Manage Service applications.

B. On the Service Applications page, ensure that the following services are started:

Ø User Profile Service Application

Ø APP Management Service

C. Under Application Management, select Manage services on server.

D. On the Services on Server page, ensure that the following services are started:

Ø User Profile Service

3. Ensure that at least one configuration file is started in the User profile Service application. The steps are as follows:

A. In central administration, under Application Management, select Manage Service applications.

B. Then select "User Profile Service Application".

C. On the Manage Profile services: User Profile Service Application page, under People, select Manage user profiles.

D. On the Manage User Profiles page, select new configuration file.

E. On the Add User Profile page, type the account name and e-mail address.

F. Select Save and close.

G. Return to the Manage User Profiles page, you should see "Total Profiles: 1".

Ii. creating a separate application domain on the development computer

1. Ensure that the SPAdmin and Sptimer services are running by opening a command prompt and typing the following command.

net start spadminv4net start sptimerv4

2. Run the SharePoint Management Shell as an administrator and type the following command to create a stand-alone application domain.

" App.sinopec.ad "

3. Ensure that the Spsubscriptionsettingsservice and appmanagementserviceinstance services are running by typing the following command in the SharePoint Management Shell.

where " appmanagementserviceinstance " " spsubscriptionsettingsserviceinstance "} | Start-spserviceinstance

4. Verify that the Spsubscriptionsettingsservice and appmanagementserviceinstance services are running by typing the following command in the SharePoint Management Shell. The output will indicate whether each service is online.

where " appmanagementserviceinstance " " spsubscriptionsettingsserviceinstance "}

5. You must specify the account that will be used to run the Spsubscriptionservice and Appmanagementserviceinstance service instances. This account must be spmanagedaccount. You can create spmanagedaccount by typing the following command in the SharePoint Management Shell (Special: You will be prompted for the account domain \ User and password).

$account = New-spmanagedaccount

6. Specify account, application pool, and database settings for Spsubscriptionservice and appmanagementserviceinstance services by typing the following code in the SharePoint Management Shell. If you created spmanagedaccount in the previous step, use the account name here.

$account = Get-spmanagedaccount"DOMAIN\username"$APPPOOLSUBSVC= New-spserviceapplicationpool-name Settingsserviceapppool-Account $account $apppoolappsvc= New-spserviceapplicationpool-name Appserviceapppool-Account $account $appsubsvc= new-Spsubscriptionsettingsserviceapplication–applicationpool $APPPOOLSUBSVC –Name settingsserviceapp–databasename Myappsettingsservicedb$proxysubsvc= new-spsubscriptionsettingsserviceapplicationproxy–serviceapplication $APPSUBSVC $appappsvc= New-spappmanagementserviceapplication-applicationpool $APPPOOLAPPSVC-name Appserviceapp-DatabaseName myappappservicedb$proxyappsvc= New-spappmanagementserviceapplicationproxy-serviceapplication $APPAPPSVC

7. Specify the tenant name by typing the following code in the SharePoint Management Shell.

" app " -confirm:$false

8, view the central administration, the newly added two applications, such as:

9, create an app, deploy, such as:

third, in Internet Explorer Add a standalone application domain to your bypass list

After you create a stand-alone application domain, follow the steps in the following procedure to add the domain to your bypass list in Internet Explorer. This ensures that you can navigate to this domain after you deploy a Sharepoint-hosted application. If your environment does not use a proxy server, you can skip this procedure.

1. In Internet Explorer, go to tools.

2. Select "Internet Options".

3. On the Connections tab, select the LAN Settings button.

4. Clear the Automatically detect settings check box.

5. Select the use a proxy server for your LAN check box.

6. Select the "Advanced" button and then the *. The yourappdomain.com is added to the Exceptions list.

7. Select the OK button.

8. Select the OK button to close the local area network (LAN) Settings dialog box.

9. Select the OK button to close the Internet Options dialog box.

Description

1. Internet Options, click LAN Settings:

2. Remove the tick of automatic detection settings, click Advanced:

3, in the exception, add *.my.app.domain, and then determine, save can:

When using the app, when the above configuration is complete, the discovery opens *. My.app.domain the problem that the domain name can not be resolved, because it is just a standalone server, it does not have DNS permissions, simply to create a new DNS on this server, set up the first DNS for the server, the installation of DNS features skipped, you need to refer to the SharePoint installation tutorial.

Iv. Add DNS parsing Process

1, add new zone, because this is my new DNS, if you are a domain control, or DNS server, there will be many options, anyway, the function is the same, such as:

2, select the main area, such as:

3. Enter the region name and click Next:

4, set the zone file, such as:

5, do not allow dynamic update, the next step:

6, click to complete, such as:

7. On the newly created area, create a new host, such as:

8, fill in the Host properties, click Add Host, such as:

9, Ping cannot resolve the domain name, such as:

In particular, if you are only local testing, only need to add the host file on the test machine, the domain name and IP map, you can achieve the above effect. I am also testing, do not know because of the DNS problem, or the server is not stable, always access time-out, but with the host mapping, much better.

10. Review the SharePoint app for the tests we deployed, such as:

Total Knot

Because I have more work to do than two development based on the SharePoint environment, the app is just a small attempt, after all, can't say touch SharePoint 2013, not even the app has written, so configure the environment, create an app experience.

SharePoint apps can not only download apps that others have developed (if they can access the Web), or publish a directory of their own to share apps for everyone to use. Personal understanding is primarily used by other developers to develop a program that is provided using programs on SharePoint.

Appendix Links

Http://www.cnblogs.com/jianyus/archive/2013/02/01/2889653.html

http://msdn.microsoft.com/zh-cn/library/office/fp179923

Http://www.cnblogs.com/kaneboy/archive/2012/12/04/2800652.html

SharePoint 2013 Building App Local development environment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.