Skip to content

santete/ecom-site

Repository files navigation

Hướng Dẫn Chạy Dự Án ecom-site

Đây là dự án website bán hàng được xây dựng với các công nghệ:

  • Vite
  • React
  • Tailwind CSS
  • Node.js

🧰 Yêu Cầu Hệ Thống

  • Node.js >= 14
  • npm >= 6

🚀 Các Bước Chạy Dự Án

1. Cài Đặt Thư Viện

npm install
  1. Khởi Chạy Dev Server
npm run dev
  1. Truy Cập Giao Diện Website Mở trình duyệt và truy cập địa chỉ:
http://localhost:5173

❗ Lưu Ý Quan Trọng KHÔNG mở trực tiếp file index.html bằng trình duyệt (dạng file://...), vì sẽ gây lỗi:

Access to script at 'file:///...' from origin 'null' has been blocked by CORS policy

✅ Luôn sử dụng lệnh npm run dev để khởi chạy server đúng cách thông qua Vite.

📁 Cấu Trúc Thư Mục Chính index.html – Trang HTML chính

src/ – Chứa mã nguồn React

public/ – Chứa tài nguyên tĩnh

vite.config.js – Cấu hình cho Vite

tailwind.config.js – Cấu hình Tailwind CSS

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors