All Projects → amazeeio → decoupled-drupal-example

amazeeio / decoupled-drupal-example

Licence: other
No description, website, or topics provided.

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Decoupled Drupal with GraphQL and React

Prerequisites

Usage

First, you need to clone this repository.

git clone [email protected]:fubhy/drupal-decoupled-app

Then, you need to install the dependencies.

cd backend && composer install
cd frontend && yarn install

Then, you need to boot the backend container.

docker-compose up -d
docker-compose exec --user drupal drupal bash

Once connected to the container, you can now install Drupal.

drush si config_installer -y --account-name=admin --account-pass=admin

Now you can create some content (basic page or article) and run the frontend application.

yarn run dev

Navigating to http://localhost:3000 should present you with a paginated list of articles and by navigation to the path of one of the nodes (basic page or article) you just created, you should see a simple teaser of that node.

Development mode

yarn run dev

Production mode

yarn run build && yarn run start

License

This project is licensed under the MIT license, Copyright (c) 2016 Sebastian Siemssen. For more information see LICENSE.md.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].