imodeljs / extension-sample

A sample iModel.js Extension

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

iModel.js Example Extension

Copyright © Bentley Systems, Incorporated. All rights reserved.

An example iModel.js Extension that demonstrates the basic setup for an Extension.

Development Setup

  1. Install and build the Extension

    npm install
    npm run build
  2. Setup local server to serve out the Extension for loading into an iModel.js App

    # Create the folder to host the Extension
    mkdir -p ./lib/imjs_extensions/sample
    
    # Link the output of the build step above to the new folder
    cp -r ./lib/extension/ ./lib/imjs_extensions/sample/
    
    # Setup a server hosting the Extension from "localhost:5000"
    npx serve --cors ./lib

Contributing

Contributing to iModel.js

About

A sample iModel.js Extension

License:MIT License


Languages

Language:TypeScript 100.0%