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

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.
Cheers,
Dan :metal:

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

https://www.youtube.com/watch?v=Ts3Je2jeK0c