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
Jonathan Grieve
Treehouse Moderator 91,254 PointsDirectory Structure for web projects
I should have done this when I first saw the video really, but I'm trying to find the Treehouse recommended file structure for projects, mostly because I can't remember all the directories and what precisely is supposed to go in them, barring the obvious ones. I can't find the stage or course it's in.
Lend a quick hand? ;)
3 Answers
Stone Preston
42,016 Pointsnormally you have the root folder of your project (lets say its called sample_project), then within that sample project you have your html file(s) along with a folder for your CSS, a folder for your JS, and a folder for your Images. if you have a lot of html files you might want to put them in a folder as well.
Jeff Busch
19,287 PointsHi Jonathan,
That's a question subject to debate. Some of it will depend on how complex the website is. Also, personal preferrence comes into play. This might be a good starting place for a Typical Directory Structure.
Jeff
James Barnett
39,199 PointsHere's a tutorial where you can read more about how to organize your files
Jonathan Grieve
Treehouse Moderator 91,254 PointsThanks for all your reponses :)
James Barnett cheers for the link. :-)
Jeff Busch Stone Preston - Typically I have folders for CSS which either I call "Css" or "Styles", a folder for Scripts, Files and "media" if apporpriate. Usually that has been enough. But I just want to go back and be absolutely sure that what Treehouse calls an "Assets" folder can be a "Files" folder etc.