Skip to content

samuelreichor/vue-craftcms

Repository files navigation

Vue craftcms banner

vue-craftcms

Write Craft CMS queries in vue, like in twig. 🚀🚀


Vue craftcms latest version Vue craftcms downloads

Warning

This npm package is still in production and important features may change.

Installation

Install vue-craftcms

npm install -D vue-craftcms
# yarn add -D vue-craftcms

Register the plugin on your application (usually in main.ts) and add the baseUrl to your craft cms backend

import { CraftCms } from '@vue-craftcms';
import { createApp } from 'vue';
import App from './App.vue';

const app = createApp(App);

app.use(CraftCms, {
  baseUrl: 'https://backend-craftcms.ddev.site',
  debug: true,
  registerComponents: true,
});

app.mount('#app');

Further Resources

Support

Contributing

Contributions are welcome! <3