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

JavaScript Express Basics (2015) Using Templates with Express Scaffolding Your Project’s Templates

Rodrigo Farell
Rodrigo Farell
1,520 Points

Hi, where can I find all the content inside the index.jade??

When the instructor launches this video, he has a bunch of code already written, where can I get access to this code?

Thanks!

10 Answers

This is a mistake at the git repository, but what I did was skip one video ahead and make "git checkout addingPartials". That adds all the code you need for the next video, but will get you set up for this as well. Hope that helps!

Hank Couture
Hank Couture
8,261 Points

Below are the links to the index.jade and post.jade files for this video. I just copied and pasted and moved on in the follow through.

GitHub Link to "index.jade" file https://github.com/hdngr/treehouse-express-basics/blob/cddaa73da6c9c86f3f94a47ab348b370bab73f5a/src/templates/index.jade

GitHub Link to "post.jade" file https://github.com/hdngr/treehouse-express-basics/blob/cddaa73da6c9c86f3f94a47ab348b370bab73f5a/src/templates/post.jade

Yeah unfortunately I see this with a few videos here on treehouse you just need to go through the branches and checkout the branch for the next part of the course as it will contain the previous videos codebase.

IMO: Team TreeHouse should actively go through and update these mistakes as it could slow down someones learning.

The new(ish) GIT Desktop application makes this pretty easy to do if you prefer a GUI over the terminal!

I agree. I have run into issue like this a couple times as well. It is a little bit frustrating, especially when someone is new to development. Aimlessly search through branches, while assuming I simply did something wrong is a big blocker in my learning process.

jasonniebauer
jasonniebauer
28,801 Points

I ran into the same issue. I was able to locate the code by searching through the other branches of the git repository. If you will look in the Final branch, you should be able to see the final version of index.jade. Hope that helps!

Our hero!

You can also check out particular files from other branches. You just need the hash/SHA of the branch you want (not sure why it doesn't work with the branch name for me, but it might for you), a double hyphen and then the path to the file(s) you want:

git checkout 9fa8c8651ee290124801f0da89f3ffb034f7daa2 -- src/templates/index.jade

The easiest way to get the hash when viewing GitHub in a browser is to select the branch from the branch dropdown menu (in this case, I got the one for the next video as suggested by Adam Hansen), then just in the top right of the list of files there's the text of the latest commit (e.g. latest commit 9fa8c8651e) and a clipboard icon. Hit that and you've got that lovely long string I pasted above!

Did you checkout the git repository as described in the Teacher's Notes?

git clone https://github.com/hdngr/treehouse-express-basics.git express-basics
cd express-basics
git checkout responseRenderMethod

That should get you the code!

Never mind! I just checked the repo and the index.jade file does indeed differ from the video. Uh-oh!

Rodrigo Farell
Rodrigo Farell
1,520 Points

Yes exactly, the file from the repo defers from the one in the lesson, this makes it hard to follow through at this point, as ithe course assumes you´ll use all that content to keep going :(

Remie Smith
Remie Smith
573 Points

This is very disappointing and it's stuff like this that's the reason I'll probably not be signing up for Treehouse paid at the end of my trial. I want something that has been checked for errors like this. It's hard enough to learn without these little glitches along the way. The videos crash my tabs in Chrome often too. Not sure if anyone else has this issue.

Treehouse is awesome, but I'd like a little more consistency.

Most courses here don't use Git to manage course material, they use Workspaces, which generally makes it far easier to follow along, since it's built-in to Treehouse.

Don't let this one course throw you, there's tons of excellent material on Treehouse!

This is making it hard to follow along with this course. I echo the sentiments that treehouse should update this.

Anthony c
Anthony c
20,907 Points

Maybe Treehouse should look into putting somebody on full-time to locate these bugs. The person could comb through comments and be in charge of both identifying them and bringing together the necessary people to create a solution. Sometimes it's just a quick note in the teachers notes, sometimes it may be a popup, or even redoing 1 of the videos.