This is a template for creating a Single Page Application (SPA) using the iTwin.js library with Create React App.
To use this template, you need to have Node.js and npm installed on your machine.
-
Create a new React app using this template:
npx create-react-app my-itwin-app --template itwin-spa
-
Navigate to your project directory:
cd my-itwin-app
-
Start the development server:
npm start
The project structure is as follows:
my-itwin-app/
├── node_modules/
├── public/
├── src/
│ ├── App.tsx
│ ├── index.tsx
│ └── ...
├── .gitignore
├── package.json
├── README.md
└── tsconfig.json
In the project directory, you can run:
Builds the app for production to the build
folder.
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.