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

HTML HTML Basics Going Further with HTML Root-relative Paths

Julien Rotundo
Julien Rotundo
10,018 Points

How do I set up the simple web server on a mac?

The teacher notes say to navigate to a directory and enter this

python -m SimpleHTTPServer 8000

Do I have to do this with terminal?

1 Answer

Rich Zimmerman
Rich Zimmerman
24,063 Points

Yes, you will do this in a terminal on your computer, if you're coding outside of workspaces. This then creates a local webserver for you to go to your webpage.

If you're running a webserver on your local machine, you can use the web address "localhost:8000" where "8000" is the port number you specify in the command "python -m SimpleHTTPServer 8000"