Instead of building my site on my iMac, I build it on a virtual server, I don't even need a real domain name. I do this via my iMac's host file:
sudo nano /etc/hosts
<ip_address> <domain name I am developing for>
I prefer this method of hosting it myself so I can see the speed online and don't have to worry about a bunch of software to install on my iMac.