Vue Sample Shop(Vue 样品店)
这个小演示展示了如何使用 Vue.js 的 Azure Functions (一个事件驱动型无服务器计算平台,还可以解决复杂的业务流程问题)接受 stripe 支付。其实设置起来并没有那么糟糕! 该商店还展示了许多概念在 Vue 中的运作方式。 使用 Nuxt.js 完成服务器端渲染和路由。 使用 Vuex 集中管理产品详细信息。 值得注意的是,使用计算属性,.sync,CSS Grid 和 transition-group。
在 https://shoppity.azurewebsites.net/ 进行现场演示
有关解释演示的文章将很快在 https://css-tricks.com/ 上提供
无服务器功能也是开源的,可在此 repo https://github.com/sdras/sample-stripe-handler 上找到。
构建设置
# 安装依赖 $ npm install # 或者 yarn # 带有热加载的服务运行在 localhost:3000 $ npm run dev # 生成静态项目,准备在 app 服务上启动 $ npm run generate