Skip to main content

Quick Start

1

Create a New Vue Project

Choose your preferred bundler:
# Install Vue CLI globally npm install -g @vue/cli # Create new
2

Install OneSDK

3

Configure Environment Variables

Create a .env file in your project root:
Never commit sensitive credentials to version control. Add .env to your .gitignore file.

Implementation

Create or update your ./src/App.vue:
App.vue

Event Handling

Running the Application

1

Start Development Server

2

Access the Application

Open your browser and navigate to:
  • Webpack: http://localhost:8080
  • Vite: http://localhost:5173
Development Best Practices
  • Keep sensitive configuration in .env files
  • Implement proper error handling for API calls
  • Use Vue’s Composition API for better code organization
  • Consider implementing loading states for better UX

Troubleshooting

  • Session Token Issues: Ensure your credentials are correct in the .env file
  • Mounting Errors: Check that container IDs match exactly
  • Component Loading: Verify all required components are properly initialized
  • Vue Version: Ensure you’re using Vue 3.x
  • Node Version: Use Node.js 18.x or later
  • Build Issues: Clear npm cache and node_modules if encountering build problems