Unfortunately, I don’t have the skills to be a developer. But in my line of work as a SysOp engineer, I need a local development environment on a regular basis to test stuff myself.
In two simple posts I will explain the tools you need and how to set them up to create a fully functional local development environment yourself. I’m doing this on a Mac and although the Windows and Linux setup is of course a bit different, this setup can work on all popular operating systems.
Let’s see what we need.
As said I’m using a Mac (with macOS Mojave) and this is what I’m using and recommending for your local development:
- Virtualbox. Free virtualisation software
- Virtualbox extension pack. Some much needed extra Virtualbox features
- Vagrant. Setup and fire up instant, easy to use development environments
- Homestead. Our company uses the Laravel framework, which makes Homestead the obvious choice for our local dev
- Sequel Pro nightly build or any other database management tool
- Gas Mask or any other easy hosts file editing tool
Just download and install all software from the links, only the Homestead installation needs some pointers (below). I’ve created a ‘Code’ directory in my home directory which I’m using for my development code. Our code is on GitHub. Put the project code in the ‘Code’ directory from the terminal:
$ git clone https://github.com/OrganisationeName/projectname ~/Code/projectname
Install Homestead from the terminal:
$ vagrant box add laravel/homestead
$ git clone https://github.com/laravel/homestead.git ~/Homestead
$ cd ~/Homestead
$ git checkout v7.18.0
$ bash init.sh
Let’s set it up next post!