Skip to content

insure-os/sample-client-nuxt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InsureOS Nuxt Sample App

A simple Nuxt.js application demonstrating two methods of integrating @insure-os/client.

Setup

  1. Link local SDK (optional - for development)

    # In package.json, set: "@insure-os/sdk": "file:../insureos/sdks/js"
  2. Install dependencies

    pnpm install
  3. Configure environment

    cp .env.example .env
    # Edit .env with your actual values
  4. Start development server

    pnpm dev

Integration Methods

  • NPM SDK (/npm-sdk) - Uses the installed package
  • CDN Script (/cdn-script) - Loads scripts from CDN

Configuration

Set these in your .env file:

NUXT_PUBLIC_INSUREOS_ORG_ID=your-org-id
NUXT_PUBLIC_INSUREOS_API_BASE_URL=http://localhost:3000/dev
NUXT_PUBLIC_INSUREOS_PRODUCT_CODE=your-product-code

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors