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.
How to do all this on a local machine?
Actually, I have everything installed.
- Node.js is installed
- The Project files downloaded.
And I'm running a Windows Machine.
Using the Powershell as the command line for Node.js
So I was wondering, how can I open files in the browser as done in the video through workspaces?What if I want to do it locally. With all the local tools. Without Workspaces. How would I do that? thank you for your time.
Duy KhanhCourses Plus Student 4,911 Points
run in local its really easy . but i recommend reading the nodejs basic in w3school , it's really easy to know how its working . Belive me , it the second time i replay video again and match what teacher doing in w3school and note it to my file and now i really remmember and know what i learned . ;) Have fun :D
Zack LeeCourses Plus Student 17,650 Points
You need to run a local server from the project directory...not sure how to do it on windows. But you could use an npm module like httpServer, or use a dev tool like gulp or webpack to run a server.
Oh, thank you, Duy Khanh. I'm gonna try it right away.
I am using IntelliJ IDEA. It is very powerful and has a "terminal" feature (node.js). This allows you to run the server through the terminal.