Vue.js with Prismic
Vue.js is one of the most popular web development frameworks. It is API- and component-based, which makes it a perfect match for Prismic. Why?
In Vue, you can build reusable components — like lego blocks — to construct webpages. Imagine that you had a collection of components called RichText, BigPhoto, and VideoEmbed. With component-based development, you can put them together however you like. Prismic structures your content the same way, in reusable data chunks that we call "Slices."
By using Prismic with Vue, your Slices can map one-to-one with Vue components, creating a powerful and dynamic page builder experience. The result is a blazing-fast web app. Prismic even takes care of things like image optimization, content versioning, and user permissions.
Tune in to conversations about Vue, JAMstack, and component-based development from the Prismic Studio.
This guide will show you how to build a site with Prismic and Vue.js. It breaks down like this:
- Steps 1–4 will take you from a new Vue project to a deployed site.
- Steps 5–10 will show you how to optimize to your web app.
- Step 11 gives you some examples and tutorials to explore.
Heads up! Before you get started...
This guide assumes you have already installed Node.js and a package manager (like npm or Yarn) and set up a Vue project.
If you don't have those, here are some guides we recommend:
Here are the steps on your journey: