Deploying a Vue Store on SAP Commerce Cloud (Hybris)

Deliver a sub-second Vue website on SAP Hybris 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.

SAP Commerce Cloud, formerly known as Hybris, is a highly customizable eCommerce platform with a robust content management system. The platform offers two proprietary frontends called Spartacus and Hybris B2C Accelerator theme. Hybris B2C Accelerator theme is a Responsive frontend solution, and Spartacus is a headless frontend solution. Because SAP Commerce's Spartacus is new, there are few proof points in production. We do know, however, that Spartacus is geared specifically for the SAP Commerce Cloud platform, so you remain locked into the platform's ecosystem. Furthermore, it does not support SSR out of the box. Unlike Hybris, which is a Java based application that typically runs on a Java server like Tomcat, Spartacus SSR is Angular JavaScript that runs on Node.js. As a result, supporting SSR with Spartacus requires running and maintaining a Node.js servers.

SAP Commerce Cloud offers a REST based API called Omni Commerce Connect (OCC) that can be used to implement shopping, account management, checkout, and even administration flows in an application. However, many enterprise  sites have significantly customized their controller logic and those customizations may need to be re-created in the separate OCC controllers or in client side code. Unfortunately, this can add additional effort when migrating to an OCC based solution, like Spartacus. Synthetic APIs can reduce this workload, which can be found on Moovweb XDN, along with AMP and SSR technology to optimize website speed for websites running on the platform.

Moovweb XDN lets you deliver your Vue storefront on SAP Commerce Cloud at sub-second speeds in a matter of hours. The average website on Moovweb XDN see median speeds of 320ms loads, as measured by Largest Contentful Paint (an important metric in Google's Core Web Vitals). Moovweb XDN, however, is much more than merely a website accelerator. It is a Jamstack platform for eCommerce. Moovweb XDN makes websites faster for users and simpler for frontend developers. The platform was built specifically for large-scale, database-driven websites such as eCommerce and Travel and includes the following benefits: 

  • Jamstack for eCommerce via 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 be run locally, in pre-prod and production environments  
  • Automated, full-stack preview URLs from GitHub, GitLab, or Bitbucket with every new branch and push
  • Performant split tests 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 SAP Commerce Cloud store 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 come with the platform. 

Check out Annie Selke, a SAP Commerce Cloud website on Moovweb XDN. This mid-sized retailer is outranking eCommerce giants like Amazon, Wayfair, and Williams-Sonoma for key phrases in the search engines on Moovweb XDN with 300ms average page loads.

Universal Standard is another great example. This is a Vue store on the XDN, achieving sub-500ms page loads.

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. 

Deploy in minutes

Moovweb XDN works with all frontends
Deploy freeTakes 2 minutes