A bridge between frameworks, Drupal in the back, Nuxt.js in the front.
- A single permission for read-only access to all JSON:API resources required by DruxtJS.
- Support for Views routes via the JSON:API Views and Decoupled Router modules.
- Support for Contact form routes via the Decoupled Router module.
- Improved support for Menu items via the JSON:API Menu Items module.
- Condition plugin bypass for Block resources.
- Enables Cross-Origin Resource Sharing (CORS) support.
- Ensures EntityViewDisplay configuration available for DruxtSchema module.
DruxtJS requires a Nuxt.js frontend and a Drupal JSON:API backend:
-
Download the Drupal DruxtJS module:
composer require drupal/druxt
-
Install the DruxtJS module.
-
Add the "access druxt resources" permission to a user/role.
-
Install the Nuxt.js DruxtJS Site module:
npm i druxt-site
-
Add the module and configuration to
nuxt.config.js
:module.exports = { modules: [ 'druxt-site' ], druxt: { baseUrl: 'https://demo-api.druxtjs.org' } }