diff --git a/.env.example b/.env.example index eea9a53..fdad4ae 100644 --- a/.env.example +++ b/.env.example @@ -1 +1 @@ -VITE_TELEMENTRYDECK_APP_ID=telementryDeckAppId \ No newline at end of file +VITE_TELEMETRYDECK_APP_ID=telementryDeckAppId \ No newline at end of file diff --git a/README.md b/README.md index 0a49e14..e649ac4 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,107 @@ -# Vue 3 + TypeScript + Vite +# telemetrydeck-vue + +A library for using TelemetryDeck in your React app. [![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release) +## Installation + +```shell +npm i @peerigon/telemetrydeck-vue --save +``` + +## Setup + +Set up the plugin in your application setup: + +```javascript +import TelemetryDeckPlugin from '@peerigon/telemetrydeck-vue'; + +const app = createApp(App); +app.use(TelemetryDeckPlugin, { + appID: "{your telemetrydeck appID}", + testMode: true, // optional - defaults to false + clientUser: 'Guest' // optional - defaults to 'Guest' +}); + +app.mount('#app'); +``` + +## Basic Usage + +```vue + + + +``` + +## Contributions + +### Local Development + +To run the plugin locally for development: + +1. Install Node.js v20 +2. Run `npm i` +3. create .env file from .env.example and add your test telemetryDeck appID. Create an account here: [telemetrydeck.com](https://telemetrydeck.com/) +3. Run `npm run dev` +4. Navigate to [http://localhost:5173/](http://localhost:5173/) for the test page +### Tests -This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `