You need a server for AJAX and instead of using something like MAMP this is a much easier, lightweight way.
WordPress can be time consuming. Using VVV and WP-CLI speeds things up tremendously.
Kellen Mace takes you through why, what for and how.
As Web Developers we have so much stuff out there to learn. Don’t believe me? Check out this exhaustible list.