React + Vite + TypeScript + Tailwind CSS + shadcn/ui,搭配 Dev Container 開發環境。
需求:Docker、VS Code + Dev Containers 擴充套件。
- 用 VS Code 開啟此資料夾
- 跳出提示時點 Reopen in Container(或執行命令面板
Dev Containers: Reopen in Container) - 容器啟動後會自動執行
npm install並啟動 Vite Dev Server (port 5173)
npm install # 安裝依賴
npm run dev # 啟動 dev server (http://localhost:5173)
npm run build # 編譯型別 + 打包
npm run preview # 預覽打包結果npx shadcn@latest add <component>
# 例:npx shadcn@latest add card dialog inputsrc/
├── components/ui/ # shadcn/ui 元件
├── lib/utils.ts # cn() helper
├── App.tsx
├── main.tsx
└── index.css # Tailwind + shadcn CSS 變數