npm

Need private packages and team management tools?Check out npm Orgs. »

@vuesion/addon-contentful

3.1.2 • Public • Published

@vuesion/addon-contentful

contentful integration for the vuesion project

Installation

Inside your vuesion project run:

npm run add

Create Contentful Models

Page

page model

Text

page model

Gallery

page model

Create Content

Test Page

page model

Notfound Page

page model

Testing

  • run your app CONTENTFUL_ACCESS_TOKEN=your-token CONTENTFUL_SPACE_ID=your-space-id npm run dev
  • go to http://localhost:3000/test
    • you should see the content from contentful
  • go to http://localhost:3000/foo
  • you should get a 404 error in the network tab and the content from contentful

Next steps

  • create more content models and refine the logic in the contentful module e.g. use <component :is="item.component" v-bind="item.properties" />

install

npm i @vuesion/addon-contentful

Downloadsweekly downloads

31

version

3.1.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability