drupalninja/drupalx-decoupled

Enterprise template for decoupled Drupal projects.

Installs: 60

Dependents: 0

Suggesters: 0

Security: 0

Stars: 16

Watchers: 4

Forks: 2

Open Issues: 0

Language:TypeScript

Type:project

10.x-dev 2024-11-17 23:18 UTC

README

CI License: GPL v2

This project template leverages the DrupalX Decoupled distribution, featuring enhanced editorial capabilities, integrated GraphQL support and a Next.js frontend starter.

What does the template do?

  • Extends the drupal-composer/drupal-project template (visit the README for basic instructions).
  • Adds additional contributed modules to the project via Composer.
  • Sets up DDEV as the default development environment.rapid style customization.
  • Installs the DrupalX recipe which adds all of the configuration and demo content for this starter.

Installing

Create your project:

composer create-project drupalninja/drupalx-decoupled:10.x-dev drupalx-decoupled-starter --no-interaction

Make sure that the files directory is writable.

chmod -R 755 web/sites/default/files/

Configure DDEV (follow prompts).

ddev config

Start DDEV, download Composer dependencies and install DrupalX CMS.

ddev install

Open another console tab to set up and run the Next.js frontend:

cd nextjs
nvm install
npm install
npm run dev

This will navigate to the Next.js directory, install the required Node.js version using nvm, install the necessary npm packages, and start the development server for the Next.js frontend.

You can now open the drush login link to log into Drupal with preview that should be fully functional.