-
From a terminal at any directory within the repo, execute "npm install".
-
Create a
.env
file 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:read
scope - iModels - enable the
imodels:read
scope - Reality Data - enable the
realitydate:read
scope
- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
A minimal, vanilla TypeScript iTwin Viewer example
License
wgoehrig/itwin-ts-viewer
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
A minimal, vanilla TypeScript iTwin Viewer example
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published