1c2e648b54daf6079ce591d9464594587ffb788d
Hướng dẫn
Repo: https://repo.hurasoft.com/tieptk/bestpc
Cài đặt hệ thống
Test và làm việc chính tại web: http://local.bestpc_vn/
- 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.bestpc_vn -
Cài đặt ../xampp/apache/conf/extra/httpd-vhosts.conf của apache trong XAMPP
<VirtualHost *:80> DocumentRoot "/thuc-muc-check-out/bestpc_vn" ServerName local.bestpc_vn <Directory "/thuc-muc-check-out/bestpc_vn/"> 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
- /old: thư mục chứa các file cũ của Tiệp đã cắt
- /template: các file template html chia theo module/view
- /pages: 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/
- /public_html: Code public
- /public_html/assets: lưu các file ảnh/css/js dùng cho giao diện
- /package: thư viện code PHP hỗ trợ
- /src: các code PHP hỗ trợ
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/bestpc_vn/package
> composer i
Description
Languages
HTML
43.4%
JavaScript
31.2%
TypeScript
17.2%
CSS
6%
PHP
2.2%