eafb7bfb5fa66e0355462d4928e23ef3562da046
Hướng dẫn
Link thiết kế: Giao diện Admin
Repo: https://repo.hurasoft.com/tieptk/admin_hura_8
Theo dõi tiến độ: https://docs.google.com/spreadsheets/d/1Po3ANsG00pm_Y3dnrwuV81cidTCCqepYmR3yPDlIq6c/edit#gid=0
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 C:\Windows\System32\drivers\etc\hosts:
127.0.0.1 local.hura8_admin -
Cài đặt ../xampp/apache/conf/extra/httpd-vhosts.conf của apache trong 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ài đặt ../xampp/apache/conf/httpd.conf của apache trong XAMPP
# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # AllowOverride FileInfo AuthConfig Limit AllowOverride All
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
Cài đặt Composer (dùng tải package của PHP)
Xem hướng dẫn: https://getcomposer.org/doc/00-intro.md#installation-windows
Sau khi cài đặt xong. Mở cmd của Windows và thao tác lệnh sau để cài các thư viện code PHP cần cho dự án này.
> cd /thuc-muc-check-out/admin_hura_8/package
> composer i
Sử dụng Tailwind để style giao diện.
Description
Languages
HTML
58.1%
PHP
23.4%
CSS
18.3%
JavaScript
0.1%
TypeScript
0.1%