DruxtJS; A bridge between framekworks.
DruxtJS connects your Drupal backend to your NuxtJS frontend through the power of Drupal's JSON:API.
Install
$ npm install druxt
Usage
Add module to nuxt.config.js
module.exports = {
modules: [
'druxt'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
Decoupled Site
For an out of the box, decoupled Drupal site, see the DruxtJS Site module.
Options
Base Druxt options
These options are available to all Druxt modules.
Option | Type | Required | Default | Description |
---|
axios | object | No | {} | Axios instance settings. |
baseUrl | string | Yes | null | Base URL for the Drupal installation. |
endpoint | string | No | /jsonapi | JSON:API Endpoint of the Drupal installation. |