Drupal
Using this starter, you’ll explore a ready-to-use Drupal GraphQL Project preloaded with content, a GraphQL server and a simple OAuth configuration.
Requirements
Section titled “Requirements”DDEV >= 1.23.3
or
Lando >= 3.0.0
Installing Drupal
Section titled “Installing Drupal”mkdir drupal-decoupled && cd drupal-decoupledddev config --project-type=drupal11 --docroot=webddev startddev composer create octahedroid/drupal-decoupled-project:^11ddev config --updateddev installmkdir drupal-decoupled && cd drupal-decoupledlando init --source cwd --recipe drupal11 --webroot=web --name=drupal-decoupled -ylando startlando composer create octahedroid/drupal-decoupled-project:^11 tmp && cp -r tmp/. . && rm -rf tmplando installConfiguring Simple OAuth Settings
Section titled “Configuring Simple OAuth Settings”-
You can use the previously generated
DRUPAL_CLIENT_IDandDRUPAL_CLIENT_SECRETvalues shown on the CLI or as a warning message. -
You can reuse the previously generated Consumers at the site by visiting
admin/config/services/consumerto edit the consumers labeled asViewer&Previewerand assigning them a new secret value.
If you prefer you can created new Consumers is this case, make sure you assign the editor user and the proper scope of Viewer & Previewer depending on the usage you are planing to give to each one.
More info about it at this blog post Implementing Content Previews with Drupal and Remix