Setup Drupal 9 with DDEV-Local in 5 minutes

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
[Music] hello everybody it's mario hernandez from mediacurrent it's been a while since i recorded one of these videos but i wanted to do a very quick one today because believe it or not a lot of people still struggle with this and that is setting up a drupal 9 or drupal 8 for that matter website up and running in just a few minutes for the purpose of this training i'm going to use ddev it's a great tool for development purposes so i'm looking at the ddev documents page that you can see at ddf.readthedocs.io and i jump directly to the drupal 9 quick start there's also a drupal 8 quick start which has very similar steps so i'm just going to go through these steps and just show you how easy it is to get a drupal 9 website up and running first i'll create a new directory for my drupal project i'm going to switch to my docker location where i normally create all my docker docker-based websites then i'll switch to the new directory now we'll go through the steps first is we're going to configure the project so it is a dd based project keep in mind that in order to follow along right you need to have docker and dev installed on your machine so make sure that that is functioning properly for you before proceeding so i'll paste this and go through the first setup which is basically just configuring this as a d-dave project if i do ls all you see is a web server do lsla you can see that there's a ddf folder there and that is where you will see a lot of the configuration for dtf next step is to start the dev so this is basically going to build the containers in docker for the database and for our application for our drupal application and we can see down there that we have now a url that we can access a drupal 9 from for now we're going to hold off to that we need to finish the process so next is we are going to now grab drupal using a composer template the drupal provides support aid the latest version of eight and into nine so this is a recommended uh composer-based project template that allows you to quickly grab all the requirements for drupal core and dependencies so this is basically just going to go grab is saying here that there's already something in the drupal 9 directory which is the web directory that we just saw earlier and if i wanted to continue typically you want to install something like this in a clean directory but this is perfectly okay because we're doing it through the dev the one thing to keep in mind is that notice that i didn't have to install composer and later on you will see that i will be able to use trash as well i don't have to install drush on my local machine this is all running from dev as long as you run your composer or drush commands using dev as a prefix then those commands will be running from the docker containers and not your host machine so there we are now we have drupal core and any other php dependencies next step is to install drush now we're going to do a quick basic drupal 9 installation this is pretty neat all you have to do is run this command and you'll have just a vanilla drupal 9 installation ready to go and there we are we have drupal up and running now we have an admin account with the password here i'm going to execute this command so that we can reset the password so we don't have to log in with the password every time we can just automatically just log in as admin without having to type username or password and that is the url if i click on it there is a resetting my password so if i go home you can see that i have a drupal 9 site up and running right that was relatively quick uh a couple things i like to do i like to add a few modules i want to be at the components module paragraphs and things like that so i'm going to again dev i'm going to grab a few modules using composer so i'm going to do paragraphs so let's do only those for now great now let's enable those modules uh the nice thing about this is by doing this with composer any modules that have any dependencies that modules have will also be downloaded for you automatically so for example we have the entity reference revisions paragraphs requires that all right now let's enable those modules of course i forgot the main command so en for enable and there we are all matches are enabled if i reload my page you obviously don't see any difference but if i hover over you can see that toolbar is there and if we look here in our com extend page you can see the components is there paragraphs and other stuff is in there so that's it hope this was helpful i'll see you on the next video thanks bye
Info
Channel: Mediacurrent
Views: 722
Rating: 5 out of 5
Keywords: Learning Bits
Id: 8TaL6UmOohc
Channel Id: undefined
Length: 6min 33sec (393 seconds)
Published: Mon Jun 07 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.