Decoupling Drupal is Easier Than You Think

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hi this is jay calicott from mediacurrent today i'm going to explain why decoupling drupal is actually easier than you might think our team here at mediacurrent has been championing decouple drupal for a number of years now we love to pair gatsbjs with drupal 8 or 9 for that matter to create an incredibly performant secure and stable solution for enterprise organizations the main thing we want you to know is that if you're thinking about decoupled one of the biggest pieces you need is already there it's already part of your aaa application that of course is the json api module the json api module is part of drupal core and is a key ingredient to transforming your application into a decoupled solution so what are the ingredients to migrating your existing site to a headless architecture let's go through each ingredient one by one the first ingredient as mentioned is the json api module this module is added to aaa core and is also present in drupal 9. the json api module simply exposes all of your content in the json api format so that it can then be consumed by other applications including gatsbjs the next thing you need to do in order to integrate with gatsbjs is to add a source plugin that will connect the gatsby application to the content being served by drupal gatsby has a host of source plugins that connect to any number of data sources including drupal wordpress and many other platforms of course you'll need to host your static application somewhere for the drupal side of things you don't really have to change anything you can continue to host on your existing hosting platform for gatsby we like netlify because it has many features and very reasonable pricing it's also easy to set up currently most of our implementations are using netlify as a host for our gatsby js applications like mediacurrent.com the next ingredient is optional but helpful and that is the build hooks module for drupal the build hooks module has a connector with nullify that allows you to easily trigger new builds in gatsby from drupal if you are familiar with how gatsby works it essentially rebuilds a site every time you tell it to rebuild this module makes it easy to configure so that every time you save a piece of content you can trigger a new rebuild automatically gatsby cloud is also optional but has a host of great features that you're likely going to want if you're using gatsby the team that created gatsbjs has been busy working on a number of features including live preview incremental builds and more we recommend you integrate with the service to get the most out of your gatsby application finally the last piece to add to the mix is the gatsbjs module available on drupal.org if you're using gatsby cloud you're going to want to configure this module so that you can leverage live preview for a seamless editing experience there are many ways to make the transition to decoupled and it doesn't always involve a full rebuild let's discuss some of the ways you could transform your existing drupal architecture to a headless application with gatsbjs first we discussed the quickest route to make your site ready for integration with gatsby is simply to install the json api module provided by core next you'll need to look at the site's overall content architecture to see how far you are away from having a content model that makes sense for a decoupled application it's possible that you don't need to do a lot because drupal is already great at defining a well-structured content model that being said if you're using layout builder or panels extensively moving to decoupled is going to be more of a paradigm shift which means you're probably going to be making more changes to your content architecture if you are going to keep your content model mostly intact without major changes you're literally halfway through a transition to a fully decoupled application in some cases it might make sense to go ahead and create a new install profile we actually took this approach on a recent client build they were already running a multi-site and we were tasked with creating a new microsite that would be decoupled rather than starting fresh with a completely new code base we were able to add a new install profile onto their existing code base one of the tangible benefits of this approach is that we could add the new site onto their existing hosting plan okay let's wrap things up today i wanted to share the idea that moving to a decoupled architecture is actually easier than you might think when you're planning your next redesign you should consider that the bulk of the effort will be on the front end which you're probably going to have to completely redo anyway so why not create that new frontend in react the last thing to consider is your team if you have a team that's great with dribble development but not as up to speed on react and graphql technology then that learning curve is probably going to add time and risk to the project in that situation maybe you're good with the standard drupal theming approach however if you don't already have a team in place you're probably going to find that it's easier to acquire developers that no react than it is to find developers well versed in drupal theming and that's really one of the compelling reasons to choose this type of architecture in the first place on the one hand you've simplified the back-end side of things where you can get a lot done with drupal site building skills then on the front inside of things you can take advantage of a large pool of talent that knows how to build react applications i call that a win-win at meteor current we have a great team of developers strategists designers and problem solvers that can help you navigate these type of decisions contact us today to learn more about your options and we'll get to work this is jay calico from media current thanks for watching
Info
Channel: Mediacurrent
Views: 1,637
Rating: 5 out of 5
Keywords: GatsbyJS, Gatsby, Decoupled, Drupal, development, React, Website, Website Redesign, Web development, open source
Id: ruX3o8K3-3M
Channel Id: undefined
Length: 6min 3sec (363 seconds)
Published: Mon Aug 24 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.