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 One Solution

Has anyone else completed all of the course content up until this point but not have any clue how to tackle this?

I've gone over the express basics part of the course twice now and I'm not getting anywhere with this. I've stayed committed to learning this but most of the requests made in this practice video I don't have a clue how to complete. Is anyone else finding this?

Dominic Bishop The basic express course was a hard one for me. It helped me a lot to write my own script when I went through the course. I made some code snippets here and there and a step by step instruction for myself. With my script, this practice session was easy. If you need the script, let me know! I hope you did it in between! :)

Daniel Bayford
Daniel Bayford
11,985 Points

Hi Dominic, I have also found the Express module a very large step up - in my opinion, they are perhaps introducing too much at once and it is overly confusing. However, I have stuck at it and am still making progress. Similar to what Christian has said with a step by step guide, perhaps try and get a simple 'prototype' working, just with routes and very basic rendering (literally "This is page 1", "This is an error page"), and try to use that as a scaffold to build around.

I also felt a bit overwhelmed at the start of this practice, but if you just take it one step at a time and play Guil's solution after each step to see if you are on track, it's really not so bad. Good luck!

1 Answer

Yes it's a bit intimidating at first. A lot of the syntax and code was unfamiliar to me, but it was not really relevant to the challenge. After I loaded up all the files and modules and watching the intro video, the first X minutes was spent trying to figure out what the heck I was looking at. But then slowly start adding 2 and 2 together to figure out what you need to get done. It took me 2 hours to complete the practice challenge, having to look up some interpolation syntax on pug.js. In the end, I still don't understand a lot of the existing code but didn't need to.

i.e. const recipeId = req.params.id; and const recipe = recipes.find( ({ id }) => id === +recipeId );

Also, I still don't understand why the program execution starts on the ./bin/www file instead of the app.js