It can be done on a Mac, but there are a few hoops to jump through (I know, I’ve recently had to do it).
I use a MacBook at work which is running Apache which you will need to act as a local web server.
To connect to the local web server on your Mac, go to System Preferences > Sharing and select Internet Sharing. Next, click AirPort options and set Channel to “Automatic”, enter a password (5 chars for 40-bit WEP encryption or 13 chars for 128-bit WEP. Now select your WEP key length (I’m using 40-bit WEP).
Click Internet Sharing checkbox and select Ethernet in the “Share your connection from:” menu and select the “AitPort” checkbox in the “To computers using:” list.
In order to access you site you need to put your code in the “Users/[yourname]/Sites/” directory which you can then get to using something like http://127.0.0.1/yoursite/
This is pretty vague and there is a lot more you can do and google is your friend.
Hope this points you in the right direction.