Create a custom data app

A custom data app is a Node.js project that can contain one or more custom data providers. A custom data app allows you to test your data providers without having to package and deploy them to ArcGIS Server.

Complete the following steps to create a custom data app.

  1. Open a command prompt, and navigate to the directory where you want to create a custom data app.

  2. Run the cdf createapp <app_name> command. This creates a directory named with the value you supplied for <app_name>.

  3. Open the newly created directory in an IDE of your choice. You should see the following folder structure.

    Use dark colors for code blocksCopy
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    - config/
        | default.json
    - framework/
        | cache-memory/
        | core/
        | featureserver/
        | logger/
        | output-geoservices/
        | winnow/
    - node_modules/
    - src/
        - request-handlers/
            | welcome-page.js
        | index.js
        | plugins.js
        | routes.js
    - cdconfig.json
    - package-lock.json
    - package.json
  4. Open a command prompt in the app directory and run the npm start command to start the app. You will see a message that the Server is listening at 8080.

;

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.