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 trialJoshua Serrano-Patron
1,837 PointsThe code doesn't work outside of "workspace".
What can I do to fix it?
3 Answers
Jennifer Nordell
Treehouse TeacherHi there! To run these files locally you will need to be running a web server on your local machine. Take a look at the Teacher's Notes for more information on how to do this.
Hope this helps!
Anna Kulczycka
16,174 PointsThe easiest way to get it to work without much setup is to use Brackets - it's a free code editor which will set up a local server for you so you dont't actually need to do anything yourself. It worked for me!
micram1001
33,833 PointsIts best to use Chrome with the web server extension for this course along with the workspace environment.
Personal I download the workspace as a zip. Then use Nano in cmd or terminal to edit the js, html files since I used to working with Nano as an editor. Of course you need to install node.js to run the js files on your OS.
Joshua Serrano-Patron
1,837 PointsJoshua Serrano-Patron
1,837 PointsI have tried copying from the editor to adding and then pulling it up in chrome and safari and nether will work. I have change values in the html such as background color and added and h1 to see if the problem was the and still the same issue.