If your content is always fetched from a single geographical location, there’s no point in building a website with Vue.js or a serverless architecture. DatoCMS serves your content from a CDN with edges all around the globe, minimizing latency.
GraphQL Content API
Ask for what you need, get exactly that
Our Content Delivery API is built with GraphQL. That means powerful developer tools, multiple resources in a single request and complete control over the data your website downloads. The perfect solution for a Vue.js CMSRead more about our GraphQL API
{}
Vue.js images
State of the art for responsive and progressive images
Serving optimized images is incredibly hard, but using our GraphQL Content API and our Vue.js component, you can implement lazy loaded, responsive images in one line of code. Avoid any layout jumping, offer instant previews of images while they load. It’s like magic.
Vue.js CMS example
DatoCMS Preview API = content editors happiness
If you're using Vue.js as a single-page application (SPA), you can easily switch GraphQL endpoint to fetch real-time previews of the changes you make to any content stored in Dato (text, images, videos). Give it a try, it's magic!
<template><div v-if="data"><h1>{{ data.movie.title }}</h1><!-- .. --></div></template><script>import axios from 'axios'function request({ query, preview }) {const endpoint = preview? `https://graphql.datocms.com/preview`: `https://graphql.datocms.com/`const response = await axios.post(endpoint, { query });return response.data.data;}export default {data() {return {data: null};},async mounted() {this.data = await request({query: `{movie(filter: { title: { eq: "Inception" } }) {titlereleaseDateactors {name}}}`});}};</script>
A component-centric CMS, just like Vue.js
Vue.js makes using components easy right from the get-go, and you should expect the same from your CMS. A component-based approach allows developers to clearly divide work amongst themselves and progress without having to rely on each other every step of the way.
Start your new Vue.js SPA in minutes
Learn from our best-practice DatoCMS + Vue.js project. Fully configured and deployed on Netlify or Vercel. Source included.