Vue.js ecommerce app with cart, checkout and account pages
npm install @ecomplus/storefront-app 
Vue 2 SPA with cart, checkout and account pages for E-Com Plus Storefront:
- Integrated with EcomCart and EcomPassport;
- Ready for E-Com Plus REST APIs;
- Internationalization support;
- A11Y compliance;
- Built with Vue CLI 4;
You can install the package and import raw source when using bundlers such as Webpack and Browserify, or load compiled from CNDs like jsDelivr or UNPKG.
It requires and doesn't include @ecomplus/utils (peer dependency), it should be used to declare store settings before starting the checkout SPA, check the following examples and edit $ecomConfig.set with your store values.
Component styles will be loaded on demand, but _Storefront Twbs_ styles should be previously imported for base UI.
``bash`
npm i --save @ecomplus/utils @ecomplus/storefront-app
`js`
// config.js
import { $ecomConfig } from '@ecomplus/utils'
$ecomConfig.set('store_id', 1011)
$ecomConfig.set('lang', 'pt_br')
$ecomConfig.set('currency', 'BRL')
$ecomConfig.set('country_code', 'BR')
`js`
// checkout.js
import './config.js'
import '@ecomplus/storefront-app/src/main'
`scss`
@import "node_modules/@ecomplus/storefront-twbs/scss/styles";
Add the scripts below right before
on your cart/checkout page:`html`
And base UI styles before :
`html`
You just need to have a #storefront-app element on your HTML:
`html`
We recommend running the SPA at the /app/ route (eg.: /app/index.html).
You can import @ecomplus/shopping-cart on other ecommerce pages to add items before redirecting user to cart:
`html`
For more details and examples, refer to EcomCart docs.
Please refer to EcomPassport` docs.