3.3 KiB
3.3 KiB
Hướng dẫn
Link thiết kế: Giao diện Admin
Cài đặt hệ thống
Test và làm việc chính tại web: http://local.hura8_admin/
- Tải phần mềm XAMPP tại https://www.apachefriends.org/download.html để chạy PHP
- Chỉnh file hosts trong máy tính: 127.0.0.1 local.hura8_admin
- Cài đặt httpd-vhosts.conf của XAMPP
<VirtualHost *:80>
DocumentRoot "/thuc-muc-check-out/admin_hura_8"
ServerName local.hura8_admin
<Directory "/thuc-muc-check-out/admin_hura_8/">
Require all granted
</Directory>
</VirtualHost>
Cấu trúc thư mục
- /template: các file template html chia theo module/view
- /data: cung cấp dữ liệu cho template và hiển thị dữ liệu trên template qua code Liquid https://shopify.github.io/liquid/
- /assets: lưu các file ảnh/css/js dùng cho giao diện
- /package: thư viện code PHP hỗ trợ
- /inc: các code PHP hỗ trợ
- index.php: file gốc để truy cập nội dung
- ajax.php: file gốc để gọi ajax
Sử dụng Tailwind để style giao diện.
- [Dùng chính] https://daisyui.com/components/
- https://tailwindui.com/
- https://tailblocks.cc/
- https://www.hyperui.dev/
- Biểu đồ
Hướng dẫn up code sử dụng git
Các bước up code:
- Lấy tất cả code từ git url về máy
- Kiểm tra trạng thái
- Nếu có sự thay đổi, sẽ thêm file có sự thay đổi (Sẽ được thông báo ở bước 2)
- Tạo ghi chú (Không viết tiếng việt có dấu)
- Upload code
- git pull (git URL) master: Lấy code về máy
- git status: Kiểm tra file nào có sự thay đổi
- git add 'tên file có sự thay đổi': Là file được báo đỏ ở git status
- git commit -m 'nội dung mô tả' : Comment nội dung
- git push origin master : Upload code
VD: Upload code từ url 'https://repo.hurasoft.com/ducdt/admin_hura.git', Thêm/Sửa file README.md
- git pull https://repo.hurasoft.com/ducdt/admin_hura.git master
- git status
- git add 'README.md'
- git commit -m 'Huong dan, quy dinh'
- git push origin master