Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
- Install Drupal
-
Download the Drupal DruxtJS module:
composer require drupal/druxt
-
Install the Druxt module.
-
Add the "access druxt resources" permission to a user/role.
Nuxt.js
- Install Nuxt
-
Install the Druxt 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' } }
Supporting organizations:
Development
Project information
- Module categories: Decoupled
- Ecosystem: JSON:API
- 66 sites report using this module
- Created by Deciphered on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.