All Projects → zivtech → gatsby-drupal-kit

zivtech / gatsby-drupal-kit

Licence: MIT license
A Gatsby V2 starter kit designed to work with a new Drupal 8 site.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to gatsby-drupal-kit

gatsby-starter-apple
🍎 Gatsby blog starter kit with beautiful responsive design
Stars: ✭ 88 (+282.61%)
Mutual labels:  gatsby, gatsbyjs
composer-tutorial
A walk through of various Composer tasks
Stars: ✭ 40 (+73.91%)
Mutual labels:  drupal, drupal-8
drupal8-oop
Tutorial for object-oriented programming fundamentals in PHP
Stars: ✭ 37 (+60.87%)
Mutual labels:  drupal, drupal-8
docker-drupal
Docker scaffolding for Drupal 8
Stars: ✭ 41 (+78.26%)
Mutual labels:  drupal, drupal-8
gatsby-typescript-emotion-storybook
Gatsby Starter: TypeScript + Emotion + Storybook + React Intl + SVGR + Jest
Stars: ✭ 63 (+173.91%)
Mutual labels:  gatsby, gatsbyjs
dkan2
Deprecated: please use the 2.x branch of the dkan repo
Stars: ✭ 17 (-26.09%)
Mutual labels:  drupal, drupal-8
drupal-jsonapi-params
A package to manage json-api params
Stars: ✭ 42 (+82.61%)
Mutual labels:  drupal, drupal-8
shila-drupal-theme
Atomic design and Pattern Lab friendly, component-based, fairly unopinionated starting point for new Drupal themes
Stars: ✭ 81 (+252.17%)
Mutual labels:  drupal, drupal-8
DrupalDriver
A collection of drivers for controlling Drupal.
Stars: ✭ 64 (+178.26%)
Mutual labels:  drupal, drupal-8
drupal-circleci-behat
Test and deploy Drupal 9 with CircleCI 2.0 and Behat 3
Stars: ✭ 17 (-26.09%)
Mutual labels:  drupal, drupal-8
varbase
Built using Drupal 8/9, an enterprise website builder platform that combines powerful editorial features, mobile, lead-generation, SEO, social media integration, and beautiful bespoke designs. Varbase is packed with adaptive functionalities and essential modules.
Stars: ✭ 75 (+226.09%)
Mutual labels:  drupal, drupal-8
drupal-composer-init
Initialise a Drupal composer setup
Stars: ✭ 43 (+86.96%)
Mutual labels:  drupal, drupal-8
drupal8-employee-crud-module
No description or website provided.
Stars: ✭ 16 (-30.43%)
Mutual labels:  drupal, drupal-8
testimonial
Jamstack app using Gatsby, Netlify, and FaunaDB.
Stars: ✭ 23 (+0%)
Mutual labels:  gatsby, gatsbyjs
migrate source example
Example module for Drupal 8 that provides migrations of users, terms, files and nodes from database, JSON resources, CSV and XML files. #migrate
Stars: ✭ 39 (+69.57%)
Mutual labels:  drupal, drupal-8
fractal-twig-drupal-adapter
Twig template adapter for Fractal with Drupal 8 directives.
Stars: ✭ 13 (-43.48%)
Mutual labels:  drupal, drupal-8
distros.bid
A saas to create drupal websites in seconds using docker containers.
Stars: ✭ 16 (-30.43%)
Mutual labels:  drupal, drupal-8
drupal8-composer-template
Project template for Drupal 8 projects with composer | Quick installation via "composer create-project woprrr/drupal8-composer-template:8.3.0"
Stars: ✭ 27 (+17.39%)
Mutual labels:  drupal, drupal-8
apigee-api-catalog-drupal
Manage your API catalog within Drupal's content management approach
Stars: ✭ 17 (-26.09%)
Mutual labels:  drupal, drupal-8
halo-lab
Website of the Halo lab: design and development agency
Stars: ✭ 32 (+39.13%)
Mutual labels:  gatsby, gatsbyjs

This a Drupal 8 gatsby V2 starter kit designed to work out-of-the-box (more or less) with a standard drupal 8 install profile. Currently a work in progress.

Drupal site: http://dev-drupal-gatsby.pantheonsite.io/ Gatsby site: https://master--clever-gates-db60f2.netlify.com/

Gatsby Setup (required)

  1. Fork, download, or clone this repo. It shouldn't matter where you put it. (no vm/mamp nonsense needed).
  2. Using the command line, cd to the root of this repo. Run "npm install." (google "install node" if this doesn't work)
  3. Install gatsby-cli. Command is "npm install --global gatsby-cli"
  4. From the root directory of the repo, run "gatsby develop." Once the setup process completes, you can start working with the site at http://localhost:8000. For the most part, the compiler will process code changes in ~1 second. Change some code, and your browser should actually automatically refresh!

Drupal 8 setup (optional)

  1. You'll need drupal to be hosted remotely, and be accessible via the web (I'd recommend setting up a free https://pantheon.io/register drupal 8 site for testing this if want to save time!)
  2. Install a standard profile
  3. Download and enable: webhooks, ctools, token, pathauto, and jsonapi
  4. Install GraphQL. Note this must be done via composer (run "composer require drupal/graphql" from drupal 8 root
  5. IMPORTANT Disable the contact form module (long story...)
  6. Configure "anonymous" role to have access to jsonapi in the permissions page.
  7. Configure automatic paths for taxonomy term tags, and articles (otherwise, just be sure to give your tags and articles url aliases)
  8. Create an article that includes an image, and a tag

Connect the sites (optional)

  1. At the root of the gatsby repo, edit "gatsby-config.js"
  2. Replace "http://dev-drupal-gatsby.pantheonsite.io/" with your site's publically accessible url

Setup a live CI enviroment (optional)

  1. Sign up for a free netlify.com account
  2. Connect your github repo (forked or cloned from this code)
  3. Select "gatsby" as the platform
  4. Create a webhook in netlify
  5. Configure drupal to fire the webhook to that url on content updates

By this point your netlify gatsby site will auto-update anytime you push to master branch, or update content in drupal. When working locally, you'll have to shut down "gatsby develop" and restart it for content changes to take effect.

What's the big picture? Here's a list of articles to jumpstart your understanding:

  1. "Composition vs Inheritance." A simple rejection of traditional object oriented conventions for the frontend https://reactjs.org/docs/composition-vs-inheritance.html
  2. "Thinking in react." Just read and accept the way: https://reactjs.org/docs/thinking-in-react.html
  3. Differences between graphql and REST: https://blog.apollographql.com/graphql-vs-rest-5d425123e34b
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].