Socket
Socket
Sign inDemoInstall

storyblok-commerce

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    storyblok-commerce

Storyblok Commerce


Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Install size
158 kB
Created
Weekly downloads
 

Readme

Source

Ecommerce SPA built on top of Vuejs

Status: Pre-Alpha. Get a demo on www.storyblok.com/commerce

Requirements

  • Requires vue-router

Install

  1. Import the javascript
import Commerce from 'storyblok-commerce'
Vue.use(Commerce, {token: 'EfFxEv57hp0SB4riYTYocwtt'})
  1. Optionally import the styles
@import '../node_modules/storyblok-commerce/scss/styles.scss';
  1. Create a container component
<template>
  <div class="my-shop">
    <sb-shop locale="en"
             :view="$route.params.view"
             :id="$route.params.id"></sb-shop>
  </div>
</template>

<script>
export default {
  name: 'Shop'
}
</script>
  1. Add the SbShop route to your vue-router configuration
// Example
import Shop from '@/components/Shop'

export default new Router({
  routes: [
    {
      path: '/shop/:locale/:view/:id',
      name: 'SbShop',
      component: Shop
    }
  ]
})

Usage

<sb-shop locale="en"
  :view="$route.params.view"
  :id="$route.params.id"></sb-shop>

FAQs

Last updated on 01 Jan 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc