Setting up the ReferenceApp locally
To set up a locally hosted Reference App, do the following:
Download and unzip the ReferenceApp zipped folder.
In the project, go to
app/public/config.jsand updateendPointConfigto 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",};Set up your dtplatform environment variables for the Reference App's
.npmrcfile. If you have already developed on the platform, you may have already set these variables. If not, follow the information in NPM package install.Run
npm install.Note: Ensure your node version is up to date.
To build the app to run locally, run
npm run watch.When the build is complete, open
http://localhost:8086/referencein an private browsing window.Sign up and log in. For more information, see Signing up and logging in to the ReferenceApp.
To set up a ReferenceApp project, see Loading or creating a project.