-
From a terminal at any directory within the repo, execute "npm install".
-
Create a
.envfile at the root of this repo with the following contents:CLIENT_ID = "" SCOPES = "imodelaccess:read imodels:read realitydata:read" ITWIN_ID = "" IMODEL_ID = "" BING_KEY = ""
-
Add values to the keys in your .env file. If you do not already have an iTwin application client id, you can obtain one here.
Your client should include the following:
- API Associations
- Visualization - enable the
imodelaccess:readscope - iModels - enable the
imodels:readscope - Reality Data - enable the
realitydate:readscope
- Visualization - enable the
- Application type - SPA
- Redirect URIs - http://localhost:3001/
- API Associations
-
From a terminal at any directory within the repo, execute "npm start". This will compile the application in watch mode and start an http server on port 3001.
-
Navigate to http://localhost:3001 in your browser
wgoehrig/itwin-ts-viewer
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|