Skip to content

Update web & desktop viewer learning tutorial to use degit, and new iTwin Vite template #8352

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 29, 2025

Conversation

pankhur94
Copy link
Contributor

@pankhur94 pankhur94 changed the title Update web viewer learning tutorial to use degit, and new iTwin Vite template Update web & desktop viewer learning tutorial to use degit, and new iTwin Vite template Jul 22, 2025
@pankhur94 pankhur94 marked this pull request as ready for review July 24, 2025 14:01
@pankhur94 pankhur94 requested a review from a team as a code owner July 24, 2025 14:01
@pankhur94 pankhur94 merged commit c15b98f into master Jul 29, 2025
10 checks passed
@pankhur94 pankhur94 deleted the pankhur94/update-viewer-documentation branch July 29, 2025 19:01
## Setup

- [Install necessary prerequisites](./development-prerequisites.md).
- From a terminal, `npx create-react-app your-app-name --template @itwin/desktop-viewer --scripts-version @bentley/react-scripts`
- From a terminal, `npx degit iTwin/viewer/packages/templates/desktop#master your-app-name`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need to specify the master branch? shouldnt that just be the default?

Copy link
Contributor Author

@pankhur94 pankhur94 Jul 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you are right, degit clones the default branch anyway if none is specified. I just included it for clarity.

@@ -15,8 +17,8 @@
5. Give your application a Name
6. Select **Native** as the Application Type
7. Select the `itwin-platform` scope
8. Set the **Redirect URL** to `http://localhost:3000/signin-callback`
9. Set the **Post logout redirect URIs** to `http://localhost:3000`
8. Set the **Redirect URL** to `http://localhost:3001/signin-callback`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did we need to change the port? this port should match what the default port is used in the apim portal upon creation

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We changed this because in desktop(electron), we cannot have the same port for running the app and redirect/signin uri. I believe we do get an option to change the redirect, sigining url when creating our apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update web viewer learning tutorial to use degit, and new iTwin Vite template
4 participants