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 trialGuy Gunaratne
6,902 PointsHow 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
Richard Duffy
16,488 Points- Locate your htdocs file.
- Go inside your htdocs file and create a new folder. This will be a specific project.
- Launch brackets and navigate to your htdocs file when you click open file.
- Once you have found your htdocs file click on the folder that is your project name.
- Make sure your project is selected.
- Click open.
- You are done.
- Navigate to localhost:8888/
project_name_goes_here
. (It should belocalhost:8888
if you have not changed any of the settings.
Thanks for asking the question!
Guy Gunaratne
6,902 PointsThank Richard! Much appreciated!
Pavel Ivanov
5,858 PointsThank for explanation, it really help.