-
Notifications
You must be signed in to change notification settings - Fork 0
SwingConan/lab05_Part01
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Hướng dẫn chạy dự án (Windows/macOS/Linux): 1) Cài Node.js >= 18 và MongoDB (chạy mongod trên localhost). 2) Giải nén dự án, mở Terminal tại thư mục dự án. 3) Chạy: npm install 4) Tạo file .env từ .env.example và sửa MONGO_URI nếu cần. 5) (Tuỳ chọn) Seed dữ liệu mẫu: npm run seed 6) Chạy server: - Dev (auto reload): npm run dev - Production: npm start 7) Mở http://localhost:3000 - CRUD Suppliers: /suppliers - CRUD Products: /products Ghi chú: - Trên form Delete/Update dùng method-override với query _method. - Product có khoá ngoại supplier (ref: Supplier). - Không xoá nhà cung cấp khi còn sản phẩm liên quan (đã chặn trong controller).
About
Bài tập thực hành 5 _ phần 1
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published