- Đây là dự án trang web dành cho kênh youtube UIT Knowledge.
- : Ecommerce bán merchandises (Đang thực hiện).
- : Blog chia sẻ kiến thức, tài liệu học tập (Sẽ thực hiện).
# Clone dự án
git clone https://github.com/UIT-Knowledge/UIT-Knowledge-Web.git
# Di chuyển vào thư mục dự án
cd UIT-Knowledge-Web
# Cài đặt dependencies
pnpm install
# Chạy development server
pnpm dev
# Mở http://localhost:3000 trên trình duyệtpnpm dev- Chạy development serverpnpm build- Build dự án cho productionpnpm preview- Preview build productionpnpm lint- Kiểm tra lỗi lintingpnpm format- Format code theo chuẩn dự án
UIT-Knowledge-Web/
├── 📁 src/ # Source code chính
│ ├── 📁 components/ # Components tái sử dụng
│ ├── 📁 layouts/ # Layout templates
│ ├── 📁 lib/ # Utilities và constants
│ ├── 📁 pages/ # Pages (routing)
│ └── 📁 styles/ # Global styles
├── 📁 public/ # Static assets
├── 📁 .github/ # GitHub workflows & templates
├── 📄 astro.config.ts # Astro configuration
├── 📄 svelte.config.js # Svelte configuration
├── 📄 tsconfig.json # TypeScript configuration
├── 📄 package.json # Dependencies & scripts
├── 📄 pnpm-workspace.yaml # pnpm workspace config
└── 📄 README.md # Project documentation
Quy tắc đặt tên:
- Trang và components tĩnh: Sử dụng
.astro - Components tương tác: Sử dụng
.svelte - Đặt tên file: Chữ thường và dấu gạch nối (ví dụ:
button.svelte,navbar-button.svelte) - Import: Sử dụng
@/aliases (ví dụ:import { hello } from "@/lib/world")
- Tuân thủ ESLint rules
- Giữ tính nhất quán trong toàn bộ mã nguồn