Skip to main content
Version: v4.5

Setting up the ReferenceApp locally

To set up a locally hosted Reference App, do the following:

  1. Download and unzip the ReferenceApp zipped folder.

  2. In the project, go to app/public/config.js and update endPointConfig to use the following endpoints:

    const endPointConfig = {  itemServiceOrigin: "https://backend-api.company.com",  passportServiceOrigin: "https://backend-api.company.com",  fileServiceOrigin: "https://backend-api.company.com",  datasourceServiceOrigin: "https://backend-api.company.com",  graphicsServiceOrigin: "https://backend-api.company.com",  objectModelServiceOrigin: "https://backend-api.company.com",  baseRoot: "http://localhost:8086/reference",  authType: 'pkce',  appId: 'c9a0c660-7b53-401f-ad5c-07e823d9cd4c',  setupZipFileOrigin:"https://invicara-guest.s3.us-west-2.amazonaws.com/project_setup/setupScripts.zip",  projectZipFileOrigin:"https://invicara-guest.s3.us-west-2.amazonaws.com/project_setup/data.zip",};
  3. Set up your dtplatform environment variables for the Reference App's .npmrc file. If you have already developed on the platform, you may have already set these variables. If not, follow the information in NPM package install.

  4. Run npm install.

    Note: Ensure your node version is up to date.

  5. To build the app to run locally, run npm run watch.

  6. When the build is complete, open http://localhost:8086/reference in an private browsing window.

  7. Sign up and log in. For more information, see Signing up and logging in to the ReferenceApp.

  8. To set up a ReferenceApp project, see Loading or creating a project.