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 Build a Simple Dynamic Site with Node.js Handling Routes in Node.js User Route

Trevor Waddell
Trevor Waddell
17,643 Points

User route not working

I am working on this course locally using MAMP sever, and I am not able to get the user route to work.

When I run node app.js in the console, and got to localhost:3306, the Header, Search, and Footer come up just fine.

When I type localhost:3306/chalkers, the browser says 'waiting on local host'.

Is there something I'm missing by not using workspaces?

1 Answer

Bobby Verlaan
Bobby Verlaan
29,538 Points

Hi Trevor. Sounds like node is just working fine. In the link below you can find my code on this exercise: https://w.trhou.se/0frk1d99z5

This doesn't answer your question whether there is something different in workspaces compared to your localhost. However you can look into the code and see if something in the code is different compared to yours.

Don't know if I can help, but if you can post your code I'll be glad to look into it.

Hey Bobby, your project really helped me out on more than one occasion.

Thanks!