@dokoo/nuxt
TypeScript icon, indicating that this package has built-in type declarations

0.0.11 • Public • Published

Dokoo Nuxt Integration

Installation

yarn add @dokoo/nuxt

Register the module in your nuxt.config.js:

export default {
  modules: [
    '@dokoo/nuxt'  
  ],
  dokoo: {
    clients: {
      myCms: {
        token: '<your-access-token>'
      }
    }      
  } 
}

Usage

You are ready to go! Use it in any of your component:

export default {
  data () {
    return {
      hits: []
    }
  },
  async fetch () {
    const feed = this.$dokoo.myCms.feeds.getFeed('<your-feed-id>')
    const { hits } = await feed.get()
    this.hits = hits
  }    
}

Find the documentation of the Javascript Dokoo Client here:

Readme

Keywords

none

Package Sidebar

Install

npm i @dokoo/nuxt

Weekly Downloads

8

Version

0.0.11

License

MIT

Unpacked Size

4.61 kB

Total Files

12

Last publish

Collaborators

  • dokoo