/simple-nuxt-wpapi

A simple Nuxt 2.x module for node-wpapi with caching (for internal testing)

Primary LanguageJavaScriptMIT LicenseMIT

simple-nuxt-wpapi

npm (scoped with tag) npm CircleCI codecov Dependencies js-standard-style

📖 Release Notes

Features

This module is for internal feature testing, it will break often. DO NO USE

Setup

  • Add simple-nuxt-wpapi dependency using yarn or npm to your project
  • Add simple-nuxt-wpapi to modules section of nuxt.config.js
{
  modules: [
    // Usage with options
    [
      "simple-nuxt-wpapi",
      {
        {
        nodeCache: {
          enabled: true,
          options: {
            // node-cache options
            }
        },
        wpApi: {
          enabled: true,
          debug: false,
          options: {
            // node wpapi options
            endpoint: 'http://demo.wp-api.org/wp-json'
          }
        }
      }
      }
    ]
  ];
}

Usage

Development

  • Clone this repository
  • Install dependencies using yarn install or npm install
  • Start development server using npm run dev

License

MIT License

Copyright (c) Enrique Garrido kik@ferpect.io