This project was bootstrapped with Create React App.
Prior to running the app, you will need to add OIDC client configuration to the variables in the .env file:
ITWIN_VIEWER_CLIENT_ID="native-xxxxxxxx"
-
You should generate a client to get started. The client that you generate should be for a desktop app and use the Visualization apis. You can add the default redirect uri (http://localhost:3000/signin-callback).
-
You may also replace the path of the sample snapshot with one of your own local snapshots in the following variable:
ITWIN_VIEWER_SNAPSHOT="./path/to/my/snapshot"
This will load the snapshot in the Viewer by default.
In the project directory, you can run:
Note: To install yarn npm install -g yarn
Runs the Electron app in the development mode.
The page will reload if you make edits.
Compiles the backend.
Compiles and bundles the frontend.