Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML HTML Basics Going Further with HTML Root-relative Paths

Starting a simple web server from any directory on your computer.

Hi How do I open my terminal or console? And how does the server work?

2 Answers

Daniel Macleod
Daniel Macleod
6,040 Points

Hi Tatenda, Hope you're well.

It might be worth checking out the Console Foundations course first. But if you are happy to go ahead, maybe this will help:

Mac: Terminal is found in Applications -> Utilities -> Terminal.

Windows: Terminal is found in Applications -> Accessories -> Terminal.

I use Node's 'live-server' which you can check out here.

If you already have Node installed, you can just type npm install -g live-server into the terminal.
Once installed, navigate into the project you are working on and type live-server.

This will serve your webpage to your default browser so that you may edit your project in real time.
Every time you save your document, the changes will be reflected in the browser.

I hope this helps.
Let me know if you have any other questions.
Dan :metal:

On Windows 10(after updates) activate the developer settings to get terminal. See this link on youtube