Deploying a Vue Store on Saleforce Commerce Cloud

Deliver a sub-second Vue website on Salesforce Commerce Cloud with Moovweb XDN

Vue is an open-source JavaScript framework for building single-page applications that has rapidly increased in popularity since its launch in 2014. This framework's primary draw is that it lets developers build fast, scaling JavaScript applications quickly. It’s lightweight and offers robust routing solutions for large applications. Vue offers great runtime performance and is fit to be the backbone for complex, revenue-generating websites with heavy traffic. The framework also offers the following benefits: built-in server-side rendering (SSR), tree shaking, bundling and virtual DOM.

Salesforce Commerce Cloud (SFCC), formerly known as Demandware, is a cloud-based solution designed for complex omni-channel retail that can support complex order management and pricing. Salesforce Commerce Cloud is one of the more popular eCommerce backend platforms with three proprietary frontends and two robust APIs available to its customers. SFCC proprietary frontends include: Mobile First Reference Architecture (MFRA) / Storefront Reference Architecture (SFRA) and SiteGensis. MFRA/SFRA has opened up SFCC to modern development practices such as CI/CD, and are an upgrade from the old SiteGenesis storefront. However, this frontend is still jQuery-based mobile site. In addition, the platform does not support the building blocks of speedy page loads, i.e PWA, MP or SSR. In fact, Salesforce Commerce Clouds backend JavaScript engine isn't suitable for SSR. As a result, website speed optimization is left to the platforms' customers, system integrators, designers and developers.  

SFCC offers two APIs are: Open Commerce API (OCAPI) and Commerce Cloud API (CCAPI) which is in beta. 

The Open Commerce API (OCAPI) is a RESTful API used by SFCC which consists of three component APIs:

  • Shop API — Provides access to Commerce Cloud digital storefront functionality
  • Data API — Provides access to digital application configuration and integration functionality on a per object basis
  • Meta API — Provides access to a formal description of the resources and documents available in the Open Commerce API.

OCAPI is a fairly robust API, however if your site is still on Pipelines architecture you may have a harder time integrating your existing customizations with OCAPI. In those cases use synthetic APIs and migrate that functionality to OCAPI at a later date. CCAPI layer in beta seems promising, but it is too early to judge the extent in which it will support speedy headless storefronts. 

Moovweb XDN lets you deliver your Vue storefront on Salesforce Commerce Cloud in sub-seconds. Websites on Moovweb XDN see median speeds of 320ms, as measured by Largest Contentful Paint (LCP). However, Moovweb XDN is much more than a website accelerator. It is a Jamstack platform for eCommerce. Moovweb XDN makes websites faster for users and simpler for frontend developers to maintain. The platform was built specifically for large-scale, database-driven websites, such as eCommerce and Travel, and provides the following benefits: 

  • Jamstack for eCommerce via both pre and just-in-time rendering
  • Zero latency networking via prefetching of data from your product catalog APIs
  • An edge that can be configured natively in your Vue app (CDN-as-JavaScript)
  • Edge rules that can run locally, in pre-production and production environments  
  • Automated, full-stack preview URLs from GitHub, GitLab, or Bitbucket with every new branch and push
  • Performant split plits at the edge and A/B tests that do not slow down the site, canary deploys, and personalization
  • Serverless JavaScript that is much easier and more reliable than AWS Lambda

With the XDN, your Vue SFCC storefront will run in sub-second speeds and your developers will be empowered to control edge caching and reduce rework using the various developer productivity tools that are part of Moovweb XDN. 

Check out Shoe Carnival, a sub-second SFCC storefront on Moovweb XDN. The shoe retailer has reduced page loads by 92%, outperforms 98% of leading websites, and increased revenue 40% on the XDN. Universal Standard is another great example. This is a Vue store, achieving sub-500ms page loads on the XDN.

If you're currently using Vue, use the this guide to deploy your Vue application on Moovweb XDN and get sub-second loads in as little as 1 hour of work. 

"The Moovweb XDN makes implementing new functionality much easier, hands down, than anything else. It is more flexible, user friendly, and it takes all the guesswork out of deployments and caching.”
Tyler Drone, Sr. Manager of Digital Development

Deploy in minutes

Moovweb XDN works with all frontends
Deploy freeTakes 2 minutes