Deploying a Vue Store on commercetools

Deliver a sub-second Vue website on commercetools with Layer0

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.

commercetools is an API-first, microservice-backed, cloud-based eCommerce platform. This architecture allows large, enterprise websites to transform into a modern commerce architecture quickly by going headless. A headless architecture has two separate layers: the frontend presentation and the backend functionality, which allows for a simpler workflow and a seamless shopping experiences. The platform offers a proprietary frontend named SUNRISE Starter Project and a robust API available, named commercetools API. The API has a catalogue of 300+ endpoints, allowing the platform to offer a modular, customizable architecture. While commercetools offers some the best APls among the leading eCommerce platforms, it does not run JavaScript or AMP server-side. To their credit, though, the platform recognizes that Sunrise Starter framework is limited and they support free open-source third-party frameworks as well.

Layer0 lets you deliver your Vue storefront on commercetools in sub-seconds. Websites on Layer0 see median speeds of 320ms, as measured by Largest Contentful Paint (LCP). However, Layer0 is much more than a website accelerator. It is a Jamstack platform for eCommerce. Layer0 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 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 Layer0, your Vue commercetools 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 Shaper Image, a commercetools website delivering sub-second page loads on Layer0. "Everyone here has commented on how blazing fast our site is" - Mihaela Mazzenga, CTO at Sharper Image

If you're currently using Vue, use the this guide to deploy your Vue application on Layer0 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