educompass-embed
v0.0.2
Published
Web-component embedding EduCompass to a webpage with minimal effort
Readme
Educompass Embeddable Component
- Build the project:
npm run buildTake the bundled code from
/build/educompass-embed.(esm.)js.Add the component to the page:
<!-- Without module -->
<script src="/educompass-embed.js"></script>
<educompass-chat api-base-url="http://path-to-public-api" />
<!-- With module -->
<script type="module" src="/educompass-embed.esm.js"></script>
<educompass-chat api-base-url="http://path-to-public-api" />Taking from CDN
Instead of building component locally, you can just use it from CDN:
<script type="module" src="https://unpkg.com/educompass-embed"></script>
<educompass-chat api-base-url="your public api" full-app-link="link to the full EduCompass application" />