โปรไฟล์โปรเจกต์: Truck
ข้อมูลตัวตน (Identity)
- Name: ezzy-truck
- Display Name: EzzyTruck
- Description: Shift logging & income app สำหรับคนขับรถบรรทุก
- Purpose: ช่วยคนขับรถบรรทุกบันทึกกะการทำงานและติดตามรายได้
- Repository: https://github.com/ktypez/truck
- Owner: ktypez
เทคโนโลยี (Technology)
- Languages: TypeScript
- Frameworks: React 19, Vite 8
- Runtime: Node.js
- Package Manager: npm
- Build System: Vite build
- Deployment Targets: Vercel
Dependencies
react: 19.2.7react-dom: 19.2.7react-router-dom: ^7.18.0@supabase/supabase-js: ^2.108.2@tanstack/react-query: ^5.101.1motion: ^12.42.2@phosphor-icons/react: ^2.1.10
Dev Tools
vite: ^8.0.16vitest: ^3.2.6typescript: ^6.0.3eslint: ^10.4.1prettier: ^3.8.4@vitejs/plugin-react: ^6.0.2@testing-library/react: ^16.3.2@testing-library/dom: ^10.4.1@testing-library/jest-dom: ^6.9.1@testing-library/user-event: ^14.6.1jsdom: ^29.1.1typescript-eslint: ^8.61.1
External Services
- Database: Supabase (PostgreSQL)
- Storage: Supabase Storage
- Auth: Supabase Auth
- Integrations: Telegram Bot API
การพัฒนา (Development)
npm install— ติดตั้ง dependenciesnpm run dev— เริ่ม Vite dev servernpm run build— build สำหรับ productionnpm run preview— ดูตัวอย่าง production buildnpm run test— รัน Vitest testsnpm run test:watch— รัน tests แบบ watch modenpm run lint— รัน ESLintnpm run typecheck— ตรวจสอบ TypeScript typenpm run format— จัดรูปแบบโค้ดด้วย Prettier
สถาปัตยกรรม (Architecture)
- Structure: React SPA ที่ใช้ lazy-loaded routes
- Entry Points:
src/main.tsx - Key Files:
src/main.tsx— จุดเริ่มต้นแอปsrc/App.tsx— Root componentvite.config.ts— การตั้งค่า Vitevitest.config.ts— การตั้งค่า test
Directory Layout
src/— โค้ด React sourcecomponents/— UI components (25 files)hooks/— Custom React hookslib/— Utility และ API logicutils/— Helper functionsstyles/— CSS และไฟล์ themethemes/— 16 theme files (dynamic loading)test/— Vitest tests
public/— Static assets (favicon.svg, files/)supabase/— Supabase functions และ migrationsapi/— External API integrations (เช่นtelegram.ts)
เอกสาร (Documentation)
คุณภาพ (Quality)
- Tests: Vitest, Testing Library
- CI: GitHub Actions (deploy edge functions)
- Linters: ESLint, Prettier
สถานะ (Status)
- State: active
- Documentation Completeness: High
- Confidence Level: High
Source:
/home/truck/package.json/home/OKF/projects/truck/agent.md