Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/druxt/druxt_drupal
The Drupal module for your Druxt.js backend.
https://github.com/druxt/druxt_drupal
drupal druxtjs json-api
Last synced: 2 months ago
JSON representation
The Drupal module for your Druxt.js backend.
- Host: GitHub
- URL: https://github.com/druxt/druxt_drupal
- Owner: druxt
- Created: 2020-06-09T06:37:03.000Z (over 4 years ago)
- Default Branch: develop
- Last Pushed: 2023-12-15T11:45:00.000Z (about 1 year ago)
- Last Synced: 2024-05-28T14:05:14.145Z (8 months ago)
- Topics: drupal, druxtjs, json-api
- Language: PHP
- Homepage:
- Size: 47.9 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DruxtJS
[![CircleCI](https://circleci.com/gh/druxt/druxt_drupal.svg?style=svg)](https://circleci.com/gh/druxt/druxt_drupal)
> 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 DruxtJS.
- Support for Views routes via the [JSON:API Views](https://www.drupal.org/project/jsonapi_views) and [Decoupled Router](https://www.drupal.org/project/decoupled_router) modules.
- Support for Contact form routes via the [Decoupled Router](https://www.drupal.org/project/decoupled_router) module.
- Improved support for Menu items via the [JSON:API Menu Items](https://www.drupal.org/project/jsonapi_menu_items) module.
- Condition plugin bypass for Block resources.
- Enables Cross-Origin Resource Sharing (CORS) support.
- Ensures EntityViewDisplay configuration available for [DruxtSchema](https://schema.druxtjs.org) module.## Installation
DruxtJS requires a Nuxt.js frontend and a Drupal JSON:API backend:
### Drupal
1. [Install Drupal](https://www.drupal.org/docs/installing-drupal)
2. Download the Drupal [DruxtJS module](https://www.drupal.org/project/druxt):
```sh
composer require drupal/druxt
```3. Install the DruxtJS module.
4. Add the "**access druxt resources**" permission to a user/role.
### Nuxt.js
1. [Install Nuxt.js](https://nuxtjs.org/guide/installation/)
2. Install the Nuxt.js [DruxtJS Site module](http://npmjs.com/package/druxt-site):
```sh
npm i druxt-site
```3. Add the module and configuration to `nuxt.config.js`:
```js
module.exports = {
modules: [
'druxt-site'
],
druxt: {
baseUrl: 'https://demo-api.druxtjs.org'
}
}
```