Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storyblok-commerce

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storyblok-commerce

Storyblok Commerce

  • 0.0.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 01 Jan 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc