Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Build a Simple Dynamic Site with Node.js!

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
We're now going to get user data from the API and print it out on the user route.
Update
If you run into any issues getting profile information back you may have to change the endpoint for the user profiles from
"https://teamtreehouse.com/" + username + ".json"
to
"https://teamtreehouse.com/profiles/" + username + ".json"
Node.js APIs Used
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
khaper bas22
70 Points1 Answer
-
Ava Jones
10,767 PointsWhen i put /chalkers or any username it still says Header Search Footer
Posted by Ava JonesAva Jones
10,767 Points1 Answer
-
Berian Lowe
22,438 Points2 Answers
-
Kendall McCall
5,648 Points1 Answer
-
Samuel Kleos
Front End Web Development Techdegree Student 13,728 Points2 Answers
-
Samuel Kleos
Front End Web Development Techdegree Student 13,728 Points1 Answer
-
josephweiss2
8,698 Points2 Answers
-
Christopher O’Brien
5,120 Points0 Answers
-
Ben McMahan
7,922 Points0 Answers
-
PLUS
billy arther
Courses Plus Student 347 Points0 Answers
-
Greg Wienecke
126 PointsThe user route is always called, but the code in user route is only executed if the username.length > 0. Is this normal?
Posted by Greg WieneckeGreg Wienecke
126 Points3 Answers
-
Greg Wienecke
126 Points2 Answers
-
Kaleshe Alleyne-Vassel
8,466 Points1 Answer
-
Abbas Zaidi
11,215 Points1 Answer
-
Timo Krämer
8,585 PointsCode: Here is the Code without EventEmitter and outsourcing modules. Everything in just one file.
Posted by Timo KrämerTimo Krämer
8,585 Points0 Answers
-
Ben Aldrich
3,946 Points0 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up