Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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,372 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!