![]() ![]() Or execute all the steps from the next Gist as a fast recipe: Xdebug on DDEV and true happinessįirst of all, you need to install the Docker Engine for DDEV, so review the installing process for DDEV and put it running in your machine. Just download the application and install it in your system. Here Postman is used as a client for testing REST services. You can use Postman or Postwoman as an alternative web (and opensource) to Postman. ![]() So install this module to enable REST resources in Drupal.Īnother classic tool for testing API REST clients in your projects. Specifically, after some compatibility issues with Symfony in Drupal Console for latest versions of Drupal, it may be more stable to use the interface. Some people are using Drupal Console commands to enable REST resources in a Drupal installation, while others are using the interface. Books/ Local Web development with DDEV.Docker, Docker-Compose and DDEV - Cheatsheet.Creating development environments for Drupal with DDEV.If you prefer an open source tool, then I recommend VSCode or its compiled version without telemetry and tracking elements from Microsoft, VSCodium (with the extensions/Plugins also available).ĭid I already say that working with DDEV means reaching the Satori? If you haven’t read me about this topic, I recommend you get to know the tool or visit some of the articles I have already published, here or at my other website : What’s interesting about this? Well, PHPStorm is the LEVIATHAN, the most extended IDE and currently, part of the de-facto standard to work with PHP/Drupal. But there’s more: It’s an artifact built with Java to program in a language like PHP, which contains methods implemented at a low level with the C language. In fact, it’s not even free (except for some exceptions of licenses offered to some profiles). It’s a basic resource that you can install easily with sudo apt-get install php-xdebug in a classical LAMP environment, or check if you have the extension installed doing a php -i in your own prompt: It is the great classic for debugging PHP code, an extension / library to install, configure and run, tracking in real time the values of your variables and the execution flow of your software. Postman or Postwoman, as you wish (for API REST testing).Drupal and some contrib modules (but not many, actually).DDEV (The containerising system Docker-based for PHP projects).PHPStorm (Well, or you opensourcered IDE). ![]() Xdebug (the classical extension for PHP for debugging).Just a quick recipe for the tools needed to build the test environment. In this article I would like to offer a simple scheme to prepare the configuration of a sufficient test environment to test REST to Drupal connections. This article is part of a series of posts about Drupal Tips.ġ- Drupal Fast Tips (I) - Using links in Drupal 8Ģ- Drupal Fast Tips (II) - Prefilling fields in formsģ- Drupal Fast Tips (III) - The Magic of ‘#attached’Ĥ- Drupal Fast Tips (IV) - Xdebug, DDEV and Postmanĥ- Drupal Fast Tips (V) - Placing a block by codeĦ- Drupal Fast Tips (VI) - From Arrays to HTMLħ- Drupal Fast Tips (VII) - Link Fields from Twig This will be an article about configurations for testing REST queries from Postman while debugging requests from the Drupal side connecting Xdebug between PHPStorm and DDEV. So “remodeling” at that level the work stack has made me want to take some notes, for the joy of using something as easy as DDEV for the development in a local environment. It has been a long time since I debugged REST and in this time, I have gone from using Drupal in a custom LAMP / Docker environment to working only and exclusively with DDEV based Drupal environments. Picture from Unsplash, user Timothy Dykes, Friday I had to perform several code debugging to review several use cases based on the interconnections between a data bus and a Drupal installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |