Vue.js Installation Guide

1

Install Node.js

1Step 1

Check if Node.js is installed by running: node -v.

2Step 2

If not, download and install it from https://nodejs.org.

2

Create Vue 3 App (Vite)

1Step 1

Run: npm create vue@latest vue-tetrons-app

2Step 2

Follow the prompts and select Vite + Vue 3 (no additional tools needed).

3Step 3

Navigate into the folder: cd vue-tetrons-app

4Step 4

Install dependencies: npm install

3

Run Development Server

1Step 1

Run: npm run dev

2Step 2

Open your browser at: http://localhost:5173

4

Create or Add Tetrons Editor in a Page

1Step 1

Create a new file: src/views/EditorView.vue or add where you require the editor

2Step 2

Paste the provided iframe code.

1<template>
2  <div class="container">
3    <h2>Tetrons Editor</h2>
4    <iframe
5      id="tetrons-iframe"
6      src="https://product.tetrons.com/embed"
7      style="width:100%; height:100vh; border:none;"
8      allow="clipboard-read; clipboard-write; microphone; camera"
9    ></iframe>
10  </div>
11</template>
5

Register Route

1Step 1

Open: src/router/index.js or src/router/index.ts (depending on setup).

2Step 2

Add a route for the editor page.

1{
2  path: '/editor',
3  name: 'Editor',
4  component: () => import('../views/EditorView.vue')
5}
6

Navigate to Editor Page

1Step 1

Visit: http://localhost:5173/editor

2Step 2

You should now see the embedded Tetrons Editor inside your Vue app.

7

Optional: Use Vue Router (If Not Installed)

1Step 1

If Vue Router wasn't included, install it manually:

2Step 2

Run: npm install vue-router

3Step 3

Set it up using the official guide: https://router.vuejs.org/guide/

Output Preview

Output Preview
Chatbot