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_rendererandparagraphsmodule being active. It's assuming a fieldfield_paragraphson the node, that containstextorquoteparagraphs with the fieldsfield_textandfield_author_name. -
You can easily change supported custom elements and how they are rendered by editing the Vue components in the
components/globalfolder. 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 generateFor detailed explanation on how things work, check out