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 trialWill Albertsen
13,155 Pointslocalhost will not load
When I type 'nodemon' on the command line, I get the message "App listening on port 3000!", so everything seems fine but the localhost will not load and it doesn't even thrown an error. It just tries to load indefinitely. I eliminated all of the subdirectories (V2, V3 etc.) so I imagine maybe it has something to do with that, but I can't identify the exact problem. Please help. Thanks. Here is a link to my repo: https://github.com/schnauzerPower/Async
2 Answers
Cory Harkins
16,500 PointsIn your app.js file, you have to serve up your page.
// respond with "hello world" when a GET request is made to the homepage
app.get('/', function (req, res) {
res.send('hello world')
})
More reading Express
Nick Davies
Full Stack JavaScript Techdegree Student 13,040 PointsI had the same issue here. She shows you the page working at the beginning of the video, making you think it should just load up and work, but you haven't written the code in the app.get method yet.
Ava Jones
10,682 PointsYeah this course so far isn't what i expected it to be
Ali .
15,521 PointsAli .
15,521 PointsDid you checked without nodemon? try with " node app.js," or check your browser issue like chrome and firefox. clean cach browser. Note look at terminal nodemon when you refresh browser may be show error later on the nodemon terminal.