0.2.1 • Published 3 years ago
@gravitybv/vue-strapi v0.2.1
Vue Strapi
This plugin is a port of @nuxtjs/strapi to use it in Vue.js. We refer to that documentation as the functionality is mainly the same.
Installation
- Install the package using
npm install vue-strapi - Import the plugin into your
main.jswithimport strapi from "@gravitybv/vue-strapi" - Use the plugin in Vue.js by adding
Vue.use(strapi)inmain.js
Features
- Authentication support
- RESTful methods
- Adaptive SDK for API entities
- Handle errors with hooks
Configuration
You can configure the plugin just like the NuxtJS module. Below you will find an example:
Vue.use(strapi, {
url: "http://localhost:1337",
entities: ["posts"]
})Development
- Clone this repository
- Install dependencies using
npm install - Start development server using
npm run serve