Intuitive admin interface
So easy to use. So easy to customize. You’re going to love the content you build better with ButterCMS.
Handy integration with Vue.js
Our Vue CMS has a simple content API and drop-in Vue SDK that makes the magic happen in minutes, not hours.
A truly zero-maintenance solution
With ButterCMS, you’ll never worry about security upgrades, hosting, or performance again.
Powerful CMS for Vue. Zero headache.
Drop our API-based CMS into your Vue app in minutes.
ButterCMS provides a component-based CMS and content API for Vue and Vue.js apps. Use ButterCMS to enable dynamic content in your apps for page content, blogs, and anything else. Most customers get our Vuejs CMS set up in one hour or less.
That leaves plenty of time for you and your marketing team to do what you do best: create killer apps with killer content.
See how Butter’s API enables you to compose flexible page layouts and easily reorder components, without a developer.
“Best CMS on the market”
After shopping the market, it was clear that ButterCMS was the perfect choice. It allows our developers to build powerful components and makes it easy for our marketing team to drive a better customer experience. Hampton Catlin Creator of Sass and Haml
Deploy our Vue Starter in 30 seconds!
Or follow the below commands to clone a copy of the repo from github, install dependencies, set your free Butter token, and run your local server on localhost:3000/.
$ git clone https://github.com/ButterCMS/vuejs-starter-buttercms
$ cd vuejs-starter-buttercms
$ npm install
$ echo 'VITE_APP_BUTTER_CMS_API_KEY=your_free_api_token_here' >> .env
$ npm run start
Built to make content marketing easy
ButterCMS is the best Vue headless cms for a simple reason: Vue developers can build solutions that marketing people love. Our API allows your content gurus to quickly spin up high-converting, dynamic landing pages, SEO pages, product marketing pages, and more, all using simple drag-and-drop functionality.
The simplest Vue CMS you'll find
Our simple setup saves you time and money. Take us for a spin to see for yourself!
It's the epitome of plug-and-play simplicity for content creators. It does exactly what I need it to. LUKE GARDNER, CONTENT SPECIALIST, PRINTAVO
Fast integration with any Vue app
Our mission was to make it easy to integrate Butter with your existing Vue app in minutes. It’s so simple! To demonstrate, here’s a mini tutorial to give you a feel for the process of adding marketing pages to your Vue or Vue.js app.
Of course, you can also use our Collections to do advanced content modeling. For a full integration guide, check out our Official Guide for the ButterCMS Vue API client.
See how easily you can integrate the ButterCMS Pages API with your Vue.js app.
Seamless Vue components
Empower your marketing team with dynamic landing pages that align perfectly with your Vue components.
Components are the essential building blocks of any Vue app, and ButterCMS handles them with ease.
Our drag and drop interface makes it simple to structure your content to match existing Vue components and to create new reusable components whenever you need them.
One Vue CMS with everything you need
There’s a reason so many developers are choosing a headless Vue js CMS. It’s easy to set up, offers flexible, customizable content modeling, and gives you access to our full Vue API.
ButterCMS saves you development time
Most customers get our Vue CMS up and running in less than an hour. Try it yourself!
Simple as can be, with powerful features and great customer support. DILLON BURNS, FRONT END DEVELOPER, KEYME
How to integrate ButterCMS into your Vue application
Just follow the simple steps below to complete the integration and begin creating pages with Butter. Be sure to check out our full guide to creating pages using the ButterCMS Vue API.
First you would set up a new Customer Case Study page type in Butter and create a page. With your page defined, the ButterCMS API will return it in JSON format like this:
{
"data": {
"slug": "acme-co",
"fields": {
"facebook_open_graph_title": "Acme Co loves ButterCMS",
"seo_title": "Acme Co Customer Case Study",
"headline": "Acme Co saved 200% on Anvil costs with ButterCMS",
"testimonial": "<p>We've been able to make anvils faster than ever before! - <em>Chief Anvil Maker</em></p>\r\n<p><img src=\"https://cdn.buttercms.com/NiA3IIP3Ssurz5eNJ15a\" alt=\"\" caption=\"false\" width=\"249\" height=\"249\" /></p>",
"customer_logo": "https://cdn.buttercms.com/c8oSTGcwQDC5I58km5WV",
}
}
}
Then query Butter from your project in src/buttercms.js
:
import Butter from 'buttercms';
const butter = Butter('your_api_token');
Update the routes in your app: router/index.js
.
import Vue from 'vue'
import Router from 'vue-router'
import CustomersHome from '@/components/CustomersHome'
import CustomerPage from '@/components/CustomerPage'
Vue.use(Router)
export default new Router({
mode: 'history',
routes: [
{
path: '/customers/',
name: 'customers-home',
component: CustomersHome
},
{
path: '/customers/:slug',
name: 'customer-page',
component: CustomerPage
}
]
})
Setup the Customers Page to list all our customers. In components/CustomersHome.vue
we define a getPages()
method to get all customer pages:
<script>
// import ButterCMS from
import { butter } from '@/buttercms'
export default {
name: 'customers-home',
data() {
return {
page_title: 'Customers',
// Create array to hold the pages from ButterCMS API
pages: []
}
},
methods: {
// Get List of Customer Pages
getPages() {
butter.page.list('customer_case_study')
.then((res) => {
// console.log(res.data.data) // Check the results in the console
this.pages = res.data.data
})
}
},
created() {
// Fire on page creation
this.getPages()
}
}
</script>export * from './butterCMS.service';
Display the results:
<template>
<div id="customers-home">
<h1>{{ page_title }}</h1>
<div v-for="(page,index) in pages" :key="page.slug + '_' + index">
<router-link :to="'/customers/' + page.slug">
<div>
<img :src="page.fields.customer_logo" alt="">
<h2>{{ page.fields.headline }}</h2>
</div>
</router-link>
</div>
</div>
</template>import {NgModule} from '@angular/core';
Setup the Customer Page to view single customer. In components/CustomerPage.vue
we define a getPage()
method to get a particular page based on it's slug.
<script>
import { butter } from '@/buttercms'
export default {
name: 'customer-page',
data() {
return {
slug: this.$route.params.slug,
page: {
slug: '',
fields: {}
}
}
},
methods: {
getPage() {
butter.page.retrieve('customer_case_study', this.slug)
.then((res) => {
console.log(res.data.data)
this.page = res.data.data
}).catch((res) => {
console.log(res)
})
}
},
created() {
this.getPage()
}
}
</script>import {Component, OnInit} from '@angular/core';
Display the results:
<template>
<div id="customer-page">
<figure>
<img :src="page.fields.customer_logo">
</figure>
<h1>{{ page.fields.headline }}</h1>
<h3>Testimonials</h3>
<div v-html="page.fields.testimonial"></div>
<div v-html="page.fields.body"></div>
</div>
</template>
That's it! If you browse to your homepage you'll see your homepage populated with the content you created in Butter.
Get Started for Free