Introduction Setting up a brand new machine for development can be a daunting task, but it’s essential to ensure a smooth workflow. This comprehensive guide will walk you through the process of preparing your Macbook Pro (2019 edition) for active PHP and Drupal development. From initial security measures to installing essential tools and configuring virtualization, this guide covers everything you need to get started.
Before diving into development tools, it’s crucial to establish a secure and up-to-date environment for your Macbook Pro.
Keep your operating system up to date by running all outstanding Mac OS updates.
Sign in to your Apple account or create one if you don’t have it already.
Download and install XCode from the App Store.
Install other necessary software, including your preferred Integrated Development Environment (IDE) and a password manager.
Now that your Macbook Pro is secure and updated, it’s time to prepare it for development tasks.
Creating an SSH key is the first step to secure access to various services.
$ ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Homebrew is a powerful dependency manager for your OS, simplifying package installation and management.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
With Homebrew in place, installing essential development packages becomes straightforward.
brew install php git composer
brew install php@7.3
Enhance Composer’s performance by installing recommended global packages:
composer global require hirak/prestissimo:^0.3
composer global require zaporylie/composer-drupal-optimizations:^1.1
To prevent memory-related issues with Composer, raise the PHP memory limit to at least 2GB (2048MB).
The next phase of setup involves installing dependencies for your specific development needs, such as Vagrant and Docker Desktop.
Be prepared to use sudo for some installations and operations, depending on your chosen development solutions.
If you plan to use DrupalVM, ensure you have the necessary components:
brew cask install vagrant
brew install ansible
vagrant plugin install vagrant-vbguest
For container-based development, install Docker Desktop and your chosen tools.
Your Macbook Pro is now well-equipped for local development. You’ve secured your system, installed essential tools, and set up virtualization options. You’re ready to start pulling repositories, building virtual machines, and coding efficiently.
A big thank you to the developers and contributors behind tools like DrupalVM, DDev, Docksal, and Lando, as well as organizations like Jeff Geerling, Drud, FFW, and Tandem. Your efforts have greatly improved the Drupal development experience over the years.
The Comprehensive Guide to Remote Work for Software Engineers Introduction: Working remotely as a Software Engineer has become an increasingly attractive option in recent years. This paradigm shift not only saves time and money on commuting but also allows for greater work-life balance and the freedom to choose your own work environment. In this comprehensiveRead more
Unlocking the Potential of Remote Web Developers for Your Business Subtitle 1: The Rise of Remote Work in the Digital Age In recent years, the concept of remote work has experienced exponential growth, primarily fueled by the proliferation of digital professions and a transformative shift in corporate mindset. Subtitle 2: Exploring the Benefits of CollaboratingRead more
Choosing Between Freelance Web Developers and Full-time Remote Developers: Pros and Cons Introduction In the wake of the significant shift towards remote work and the growing importance of user-friendly interfaces, businesses face a crucial decision when seeking skilled web developers. The question that arises is whether to hire a freelancer or a full-time remote webRead more
2013 - 2023 Foreignerds Inc. All Rights Reserved