An example project showing the usage of the Nuxt.js Drupal-CE module.
- A Drupal backend with the Lupus Custom Elements Renderer module installed.
-
This setup assumes being connected to a Drupal 9 site with the
lupus_ce_renderer
andparagraphs
module being active. It's assuming a fieldfield_paragraphs
on the node, that containstext
orquote
paragraphs with the fieldsfield_text
andfield_author_name
. -
You can easily change supported custom elements and how they are rendered by editing the Vue components in the
components/global
folder. In order to register a new component simply add a respective Vue component with a matching name (kebap-case can be converted to CamelCase).
# install dependencies
$ npm install
# serve with hot reload at localhost:3000
$ DRUPAL_BASE_URL=http://yourdrupal.example.com npm run dev
# build for production and launch server
$ npm run build
$ npm run start
# generate static project
$ npm run generate
For detailed explanation on how things work, check out