DruxtJS

A bridge between frameworks, Drupal in the back, Nuxt.js in the front.

 

Features

  • A single permission for read-only access to all JSON:API resources required by Druxt.
  • Support for Views routes via the JSON:API Views and Decoupled Router modules.
  • Condition plugin bypass for Block resources.
  • Enables Cross-Origin Resource Sharing (CORS) support.

 

Installation

Druxt requires a Nuxt frontend and a Drupal JSON:API backend:

Drupal

  1. Install Drupal
  2. Download the Drupal DruxtJS module:
    composer require drupal/druxt
  3. Install the Druxt module.
    Install the Druxt module.
  4. Add the "access druxt resources" permission to a user/role.
    Add the 'access druxt resources' permission to a user/role.

 

Nuxt.js

  1. Install Nuxt
  2. Install the Druxt Site module:
    npm i druxt-site
  3. Add the module and configuration to nuxt.config.js:
    module.exports = {
      modules: [
        'druxt-site'
      ],
      druxt: {
        baseUrl: 'https://demo-api.druxtjs.org'
      }
    }

 

Supporting organizations: 
Development

Project information

Releases