A drupal repo ready to do Drupal using GitHub Codespaces and DDEV.
To create a new repository from this template:
- Create a new repository and choose this repository as the template
- In the new repository, choose to start a Codespace
- Wait! This bit takes a while as Codespaces creates your environment. Hang in there until Visual Studio has appeared, wait a little longer for the postCreateCommand to begin and complete and you reach a terminal prompt
- Honestly, it takes a while on first build - go make a cup of tea
- Start DDEV and install all the required Drupal components with the command
ddev composer install
- In the Ports tab above the terminal, you will see the ports listed for things like the webserver, the database server etc. Click on the World icon next to the web https (8443) port for the webserver and a new tab will open, inviting you to "install Drupal"
- Install Drupal
If the codespace is restarted, the docker pieces that hold the webserver etc need to be started with the command ddev start
.