# Getting started
DruxtJS requires a NuxtJS frontend and a Drupal JSON:API enabled backend:
# Drupal
Download the Drupal Druxt module (opens new window):
composer require drupal/druxt
1Install the module:
Add the "access druxt resources" permission to a user/role:
Enable and configure CORS in the your sites
services.yml
file.
# Nuxt
Install the DruxtJS Site module (opens new window):
npm i druxt-site
1Add the module and configuration to
nuxt.config.js
:module.exports = { modules: [ 'druxt-site' ], druxt: { baseUrl: 'https://demo-api.druxtjs.org' } }
1
2
3
4
5
6
7
8
9Add the
DruxtSite
component to your page or layout:<template> <DruxtSite :theme="theme" /> </tempalte>
1
2
3