@vuesion/addon-contentful

vuesion contentful integration
1,381 16
Install
npm install @vuesion/addon-contentful@3.1.2
Latest Version:3.1.2
License:MIT
Last Updated:Jun 14, 2024
Links: GitHub  ·  npm
Maintainer: devcrossnet

@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

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 CONTENTFUL_PREVIEW=true 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" />

Related Packages

@vuesion/models

models and AST tools for vuesion

2,521 16
@vuesion/utils

utilities for vuesion

2,744 16
@vuesion/webpack

webpack configs and dev-server for vuesion

1,770 16
@vuesion/addon-vuex-persist

vuesion vuex middleware to persist state + adapters

2,356 16
@vuesion/vuex-persist

vuesion vuex middleware to persist state + adapters

1,286 16

Version History

Version Released License
3.1.2 MIT
3.1.1 MIT
3.1.0 MIT
3.0.4 MIT
3.0.3 MIT
Pre-releases (26)
Version Released License
4.0.0-alpha.12 MIT
4.0.0-alpha.11 MIT
4.0.0-alpha.10 MIT
4.0.0-alpha.9 MIT
4.0.0-alpha.8 MIT