Get app ID

Source: Internet
Author: User
Tags oauth uicontrol install node node server

Install
    1. Download the Web AppBuilder for ArcGIS (Developer Edition) ZIP file to your local drive and unzip it.
    2. Because Web AppBuilder runs on top of node. js, you must has node. js installed on your computer. The download package contains the Windows version of node. js.
      • If you is on a Windows platform, you can follow the steps in the next section to start Web AppBuilder.
      • If you is on a platform other than Windows, such as Mac or Linux, you need to install node. JS specifically on your PLATF  ORM first. In case you already has node. js installed, make sure it version is 0.10.0 and later.
Note:

The minimum version of node. JS supported by Web AppBuilder is 0.10.0.

Start Web AppBuilder
  1. Start Web AppBuilder based on your platform.
    • On Windows, double-click the Startup.bat file in the unzipped folder. The batch file starts the node. JS server in the Command Prompt window and Web AppBuilder in your default browser with the C2>http://[yourmachinename]:3344/webappbuilder. If The browser is closed, you can reopen Web AppBuilder in the same-or a different-browser as long as node. JS is running In the Command Prompt window.
    • On other platforms, open the Command Prompt windows, CD to the /server directory of the Web AppBuilder installation , and type node server.js. Once node. js runs, start Web AppBuilder in the browser with Http://[yourmachinename]:3344/webappbuilder. If The browser is closed, you can reopen Web AppBuilder in the same-or a different-browser as long as node. JS is running In the Command Prompt window.
  2. Web AppBuilder runs on top of node. js with the default port of 3344. To run Web AppBuilder with additional parameters, different ports, or as a Windows Service, complete the following step S. Otherwise, see the Specify Your Portal URL section.
    • Run with additional parameters and different ports.
      1. open a command window and browse to the /server directory of   the Web AppBuilder installation.
        • On 64-bit Windows, type node_x64.exe server.js [-port=value] [-proxy=value].
        • on 32-bit Windows, type node_x32.exe server.js [ -port=value] [-proxy=value].
        • on other platforms, type  node server.js [- Port=value] [-proxy=value].
        note:

        -port Specifies the port  You want node. js to run on, and -proxy Specifies the proxy URL if needed.

      2. start Web AppBuilder in the browser with the port number specified above AT&N Bsp http://[yourmachinename]:[yourport]/webappbuilder. Tip:

        if you had problems starting Web AppBuilder, see FAQs for more inf Ormation.

    • run as a Windows service:
      1. install node. js on your Windows platform.
      2. run Command Prompt as Administrator.
      3. browse to the /server directory of Web AppBuilder , and run the npm install command.
      4. run the NPM run-script install-windows-service command.
      5. start the Arcgiswebappbuilder service from the Services window.
      6. to remove the Arcgiswebappbuilder service, run the npm run-script uninstall-windows-service command.
Specify your portal URL
    1. Specify the URL for the ArcGIS Online organization or Portal for ArcGIS account so want Web AppBuilder to access . To use Web AppBuilder, must has an ArcGIS Online organization account, a Portal for ArcGIS account, or a ArcGIS for D Evelopers account. Subscription:

      Sign up for the ArcGIS Online Trial account at Http://www.esri.com/software/arcgis/arcgisonline/evaluate.

    2. Click Continue.
Provide App ID for Web AppBuilder

Since This was the first time you've used Web AppBuilder with the portal specified above, and you could be asked to provide an APP ID for Web AppBuilder to support OAuth 2 authentication. For a specified portal, this process is required one time. When you subsequently start Web AppBuilder, you can log on to the portal directly.

Do the followings-retrieve an App ID

    1. Log in to the portal you specified above.
    2. Add Web AppBuilder as an item.
      • for ArcGIS Online organization or Portal for ArcGIS 10.3.1 and up:
        1. go to my Content, pull down add Item and select an application.
        2. in the Application dialog, for URL, enter http://[yourmachinename]:3344/webappbuilder. For Title, enter something this makes sense to you, such US web AppBuilder for ArcGIS. For Tags, enter something this is easy for search, such as registered Web AppBuilder.
        3. keep the rest of the options as default.
        4. click add ITEM.
      • for Portal for ArcGIS 10.3:
        1. go to My Content, click + Add Item.
        2. in the Add Item dialog, pull down the Item are and select an application. For URL, enter http://[yourmachinename]:3344/webappbuilder. For Title, enter something this makes sense to you, such US web AppBuilder for ArcGIS. For Tags, enter something this is easy for search, such as registered Web AppBuilder.
        3. keep the rest of the options as default.
        4. click add ITEM.
    3. The Item Details page, click REGISTER under APP registration section.
    4. In the Register dialog, for Redirect URI, add http://[yourmachinename]and Https://[yourmachinename] as Redirect URIs. Be aware this URIs with HTTP and HTTPS protocols is distinguished as the different URIs. It is strongly recommended adding both of them to the URI list to avoid potential redirect issues.
    5. Keep the default value for APP Type and click REGISTER.
    6. In the Item Details page, copy the app ID under app registration.
    7. in the browser, paste the App id  into the text box of Web AppBuilder, and click continue.

      If you get Error + Invalid Redirect_url, complete the following steps.

      1. Go to  /server directory of  the Web AppBuilder installation, delete signininfo.json file.
      2. review  step 4. Update the existing App ID with the correct redirect URIs. You can also create a new App ID from the scratch.
      3. refresh the browser running Web AppBuilder.
      4. provide your APP ID again, and click continue.
    8. Enter your credentials if not already logged in, or click APPROVE with Request for Permission dialog.
An App ID was required by OAuth 2 authentication. See Authentication and OAuth 2. If you have problems logging on, see FAQs and ADD Apps and register your appbuild your first app

You is now the ready to build your first app.

Get app ID

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.