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 <name> command. This creates a directory named with the value you supplied for <name>.

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

    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. To run the app, open a command prompt in the app directory.

    • a. Using HTTP: Run the command npm start. You will see the message: Server is listening at 8080.
    • b. Using HTTPS: Run the command npm start -- --port <port number> --self-signed-cert. You will see the message: Server listening at https://localhost:8080.

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

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close