#!/bin/bash

# This script sets up and runs the React example with the fixed SDK

echo "Setting up the React example with the fixed SDK..."

# Build the fixed SDK
cd "$(dirname "$0")/../fixed-sdk"
npm install
npm run build

# Install dependencies for the React example
cd "$(dirname "$0")"
npm install

# Start the React example
echo "Starting the React example on port 5173..."
echo "Open http://localhost:5173 in your browser"
npm run dev