Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Guy Gunaratne
Guy Gunaratne
6,902 Points

How do I connect my Brackets text editor with MAMP for localhost?

Hi all, I'm trying to install MAMP on my machine so I can use it as a localhost in conjunction with my text editor (Brackets) but right now it doesn't seem to work.

I (think) MAMP is installed and the server is running. But anytime I try to preview my index.html file in the live preview I get an error.

3 Answers

  1. Locate your htdocs file.
  2. Go inside your htdocs file and create a new folder. This will be a specific project.
  3. Launch brackets and navigate to your htdocs file when you click open file.
  4. Once you have found your htdocs file click on the folder that is your project name.
  5. Make sure your project is selected.
  6. Click open.
  7. You are done.
  8. Navigate to localhost:8888/project_name_goes_here. (It should be localhost:8888 if you have not changed any of the settings.

Thanks for asking the question!

Guy Gunaratne
Guy Gunaratne
6,902 Points

Thank Richard! Much appreciated!

Pavel Ivanov
Pavel Ivanov
5,858 Points

Thank for explanation, it really help.