Markdown Converter
Agent skill for markdown-converter
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
TTAnalysis is a table tennis match analysis web application built using React, TypeScript, and Supabase. The app allows users to track table tennis matches, record point-by-point details including shot types, and analyze performance statistics.
# Install dependencies npm install # Start Supabase and application servers (recommended) ./start-dev.sh # Start only the development server (without Supabase) npm run dev # Apply new migrations to database (NEVER use supabase db reset) supabase db push # Build for production npm run build # Lint the codebase npm run lint # Preview the production build npm run preview # Promote a user to admin (requires SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY in .env) npm run promote-admin [email protected]
The
start-dev.sh script handles:
The database uses PostgreSQL with Supabase for Auth and Row Level Security. The schema is defined in the
supabase/migrations directory.
/src/components: Reusable UI components (Layout, PlayerPanel, ShotSelector, etc.)/src/pages: Main application pages/screens/src/lib: Utilities and external clients (Supabase)/src/types: TypeScript definitions for database entities/src/styles: Global CSS and stylesheets/docs: Project documentationThe application uses environment variables:
VITE_SUPABASE_URL - URL for Supabase instanceVITE_SUPABASE_ANON_KEY - Anonymous API key for SupabaseUse
./start-dev.sh for local development, which sets up:
Mobile-first design for courtside usage during matches
Match deletion and creation are fully implemented
Point recording uses shot IDs from the shots database