JSPM

cra-template-itwin-auth-spa

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q21750F
  • License MIT

The iTwin.js Authorization SPA template for Create React App web applications.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cra-template-itwin-auth-spa) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    iTwin SPA with Authorization Template for Create React App

    This is a template for creating a Single Page Application (SPA) with Bentley IMS Authorization.

    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-auth-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.