HQ là nơi quản lý tập trung việc khởi tạo và các chức năng dùng chung cho toàn bộ hệ thống Lunar.

URL: https://hq.tdalunar.com Repo: https://github.com/swebvn/luhq

Main tech stack

  • Laravel
  • FilamentPHP (admin panel)

Khởi tạo store

Truy cập vào từng hub để khởi tạo store. Có 2 bước chính là trỏ domain và khởi tạo, có thể thực hiện song song mà không ảnh hưởng đến nhau.

Provision website trên hub

  • domain: domain chính của website
  • keyword: keyword chính cho SEO, đồng thời cũng là chủ đề của website
  • related keywords: các keyword liên quan đến keyword chính (hiện tại sử dụng để lọc title sản phẩm khi crawl)
  • topic: chủ đề website, ví dụ: anime, movie, tv series, …

Bulk khởi tạo nhiều store

Khởi tạo thông qua HQ. Chuẩn bị thông tin qua file CSV, chọn server và submit. Chú ý trỏ domain về đúng server của hub.

Định dạng file CSV có thể xem trên file mẫu ở form n8n, hoặc sử dụng format cơ bản như sau:

domainkeywordsimilar_keywordstopicimport_redbubbledesign_namedesign_url
chillguy.storechill guychill guy, chilling guymeme0Black chill guyhttps://example.com/blackchil.png
white chill guyhttps://example.com/whiteguy.png
thesimpson.storethe simpsonthe simpsontv series1

Chú thích:

  1. import_redbubble: có thể có các giá trị sau:
    • 0: Không import từ Redbubble
    • 1: Import từ Redbubble và không tạo design
    • 2: Import cả Redbubble và tạo sản phẩm từ file design
  2. design_name: tên của design, sẽ được ghép với tên collection để tạo tên sản phẩm
  3. design_url: link file ảnh của design

Nếu không cần tạo product từ design mà chỉ cần import từ Redbubble, thì để trống design_name và design_url, đặt import_redbubble = 1.

Cấu hình combination

Doc cho combination được viết riêng tại combination