cra-template-itwin-spa

1.0.3 • Public • Published

iTwin SPA Template for Create React App

This is a template for creating a Single Page Application (SPA) using the iTwin.js library with Create React App.

Getting Started

To use this template, you need to have Node.js and npm installed on your machine.

Installation

  1. Create a new React app using this template:

    npx create-react-app my-itwin-app --template itwin-spa
  2. Navigate to your project directory:

    cd my-itwin-app
  3. Start the development server:

    npm start

Project Structure

The project structure is as follows:

my-itwin-app/
├── node_modules/
├── public/
├── src/
│   ├── App.tsx
│   ├── index.tsx
│   └── ...
├── .gitignore
├── package.json
├── README.md
└── tsconfig.json

Available Scripts

In the project directory, you can run:

npm run build

Builds the app for production to the build folder.

npm start

Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.

Package Sidebar

Install

npm i cra-template-itwin-spa

Weekly Downloads

8

Version

1.0.3

License

MIT

Unpacked Size

86.7 kB

Total Files

17

Last publish

Collaborators

  • asadhasnain