【问题标题】:how to integrate vuestorefront with shopify如何将 vuestorefront 与 shopify 集成
【发布时间】:2019-01-23 14:29:00
【问题描述】:

我正在尝试将 vuestorefront 与 shopify 集成但无法理解
正确的方法
有很多像
这样的存储库 前端的 vue 店面
https://github.com/DivanteLtd/vue-storefront
用于后端的 vue 店面 api
https://github.com/DivanteLtd/vue-storefront-api
用于 3rd 方集成的 vue 店面集成样板(在我们的例子中为 Shopify)
https://github.com/DivanteLtd/vue-storefront-integration-boilerplate
这就是我所知道的
我在 vue 店面集成样板中遇到问题
无法找到与 shopify 通信的方式
文档说
我需要在任何平台上构建一个新应用程序,该应用程序将与 vue 店面集成样板(vs bridge)和 shopify 进行通信

这是 magento 在 vs bridge 中的示例配置(vue 店面集成样板)

{ “弹性搜索”:{ “主持人”: ””, “indexName”:“vue_storefront_magento1” }, “vsbridge”:{ "url": "http://example.com:80/", “认证”:{ “用户名”:“管理员”, “密码”:“密码123”, “秘密”:“Geiw0qua” }, "auth_endpoint": "http://example.com/vsbridge/auth/admin", "product_endpoint": "http://example.com/vsbridge/products/index", "category_endpoint": "http://example.com/vsbridge/categories/index", "taxrule_endpoint": "http://example.com/vsbridge/taxrules/index",
} } 我需要此配置文件的帮助才能与 shopify 进行通信
请告诉我是否有人这样做过

【问题讨论】:

    标签: vue.js shopify storefront vue-storefront


    【解决方案1】:

    我看到的方式是创建一个“中间件”应用程序并将其放置在某个地方。此应用应基于集成样板示例构建,并将从 Shopify API 获取的数据提供给服务器。

    当这个“中间件”或“桥”应用程序完成时。可以将其连接到 VueStorefront 作为 vue-storefront-api 的替代品。 在 vue 店面配置中,您不会向 vue-storefront-api 提供 URL,而是向您自己的应用程序 URL 提供 URL。

    【讨论】:

    • 你做到了吗?我知道这个概念,我正在尝试,但我被困在弹性数据存储和 docker 等无法理解数据流
    • 是的,我成功地使用样板构建了自定义集成,这就是我所知道的 :) 如果您在 SO 不够用或您有其他问题时,请随时加入官方 vueStorefront 松弛频道 (github.com/DivanteLtd/…)有太多的问题。但除此之外,只需使用vue-storefront 标签,我会尽可能多地帮助您解决您可能遇到的其他问题。
    • 是的,我在 vue Storefront slack 频道,我会在 slack 中与您交谈
    猜你喜欢
    • 1970-01-01
    • 2023-04-04
    • 1970-01-01
    • 1970-01-01
    • 2022-10-09
    • 1970-01-01
    • 2020-08-09
    • 1970-01-01
    • 2020-02-11
    相关资源
    最近更新 更多