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 trialMark Figueroa
Front End Web Development Techdegree Student 8,074 PointsDoes the serve get set up through the "cmd.exe" console? If so, how and how do I actually access my directory?
I viewed the thread and it seems others have had similar issues. The responses were not very helpful to me. I ran a google search and found how to open my command prompt:
1. Press WinKey+R
2. Type cmd
3. Press Enter
link:https://www.quora.com/How-do-I-open-terminal-in-windows
I'm not sure if that was the correct way to go about it, but I opened my "terminal" and entered: "C: \Users(my user name)>python -m SimpleHTTPServer localhost:8000," but nothing happened.
I understand the concept and why you would use a local server to view your directory's files. I don't understand how to actually set my server up or how I would access my files via my browser through my server. Please answer the following questions and explain this to me in laymens terms. Thanks in advance.
- How and where do I type the server name in?
- How do I go about navigating through/viewing my site within the server?
1 Answer
Steven Parker
231,268 PointsNote that the first part of that line ("C: \Users(my user name)>
") represents the command prompt shown by the system and is not something you would type in. The part you would type starts with the word "python
".
Also, this example seems to be designed for the workspaces, which use a Linux operating system. The actual prompt you would see on a Windows system would likely be different.
And, Python isn't supplied by default on a Windows system. You would need to install it (if you had not already) before this command would work.
Finally, to view the site you would connect to the running server using a web browser.
Mark Figueroa
Front End Web Development Techdegree Student 8,074 PointsMark Figueroa
Front End Web Development Techdegree Student 8,074 PointsHi Steven,
Thanks for your reply and the for the information.
Steven Parker
231,268 PointsSteven Parker
231,268 PointsMark Figueroa — Glad to help. You can mark the question solved by choosing a "best answer".
And happy coding!
Carlos Perez
2,800 PointsCarlos Perez
2,800 PointsIt should would have been nice for Guil Hernandez to explain all of that. =/