diff --git a/job-use/CLAUDE.md b/job-use/CLAUDE.md deleted file mode 100644 index 1b52b91..0000000 --- a/job-use/CLAUDE.md +++ /dev/null @@ -1,71 +0,0 @@ -# CLAUDE.md - -This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. - -## Commands - -### Development -- `npm run dev` - Run both frontend (Vite) and backend (Convex) development servers in parallel -- `npm run dev:frontend` - Run Vite frontend development server only -- `npm run dev:backend` - Run Convex backend development server only - -### Build & Lint -- `npm run build` - Type-check and build production bundle -- `npm run lint` - Type-check and run ESLint with max warnings of 0 - -### Testing -No test commands are configured. Consider adding test infrastructure if needed. - -## Architecture - -This is a Convex + React (Vite) application with real-time backend capabilities. - -### Tech Stack -- **Frontend**: React 19 with TypeScript, Vite bundler, Tailwind CSS for styling -- **Backend**: Convex (serverless backend with real-time database) -- **Path Aliases**: `@/` maps to `./src` directory - -### Project Structure -- `/src` - React frontend application - - `App.tsx` - Main application component with routing - - `main.tsx` - Application entry point - - `/pages` - Application pages (LandingPage, JobsDashboard, Profile, etc.) - - `/components` - Reusable components (Navigation, JobCard, ProfileCard, etc.) - - `/contexts` - Context providers (AuthContext, ToastContext) -- `/convex` - Convex backend functions and schema - - `schema.ts` - Database schema definition with 5 tables: - - `candidates` - User profiles - - `jobExperiences` - Work history - - `questions` - Application questions - - `jobs` - Job listings - - `applications` - Job applications - - `candidates.ts` - CRUD operations for candidates - - `jobs.ts` - CRUD operations for jobs - - `applications.ts` - CRUD operations for applications - - `jobExperiences.ts` - CRUD operations for job experiences - - `questions.ts` - CRUD operations for questions - - `_generated/` - Auto-generated Convex API and types (do not edit) - -### Key Convex Patterns - -The application demonstrates core Convex patterns: -- **Queries**: Fetching candidates, jobs, applications from database -- **Mutations**: Creating/updating candidates, jobs, applications -- **Real-time updates**: Data automatically syncs across all connected clients -- **Indexes**: Efficient querying by email, candidateId, jobId, status - -### Frontend-Backend Integration -- Import API from `convex/_generated/api` for function references -- Use `useQuery` hook for reactive data fetching -- Use `useMutation` hook for data mutations -- Authentication context available via `ctx.auth.getUserIdentity()` - -### Development Guidelines from Cursor Rules - -Follow the comprehensive Convex guidelines in `.cursor/rules/convex_rules.mdc`: -- Always use new function syntax with explicit args and returns validators -- Use `v.null()` for functions that don't return values -- Prefer indexes over `.filter()` for queries -- Use `internalQuery/Mutation/Action` for private functions -- Include `"use node"` directive for actions using Node.js modules -- Define meaningful index names including all indexed fields \ No newline at end of file