This sample application is intended to be used as an example of several possible workflows that you can achieve using the iTwin Platform. The source code is provided AS IS, without warranty of any kind, with the intent being to provide inspiration and guidance. It should not be used as the basis of a production application, and it is NOT production ready.
Copyright © Bentley Systems, Incorporated. All rights reserved.
The iTwin Demo Portal is a demonstration of some of the services provided by the iTwin Platform.
Prior to running the app, add a valid clientId in packages/app/.env.local
file:
IMJS_AUTH_CLIENT_CLIENT_ID="spa-xxxx"
This client Id can be created by going to the registration page. The application should have the Visualization, Data Management, Synchronization and Administration API associations and at least have http://localhost:3000/signin-callback
as a redirect url.
In the project directory, you can run:
Pulls all dependencies so the app can be started.
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
git clone https://github.com/iTwin/demo-portal.git
cd demo-portal
- Create new app using
https://developer.bentley.com/register/
(See above for app requirements) - Create
packages/app/.env.local
file with a single line containingIMJS_AUTH_CLIENT_CLIENT_ID=spa-xxxx
(ID created in step 2) yarn
(same asyarn install
)yarn start
(Takes a few minutes to start)- Browse to
http://localhost:3000
(Should open automatically)