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
Gustavo Buarque
7,113 PointsHow can I run my application?
I'm trying to run my app.js that I've learned in the previous course. But I can't figure out how to do this.
3 Answers
Gustavo Buarque
7,113 PointsOh sorry. I explained in wrong way. I've installed http-server locally and I'm trying to run my application there. The server run but I don't know how to run my application. When I run the server it just shows the directory file list to me.
Mohamad Fadhli Ismail
11,935 PointsCan you post any screenshots of the problem?
Gustavo Buarque
7,113 PointsWell there isn't an error. Let me try starting to explain my problem again.
I've used npm install http-server -g Then I started the server in the folder "simple-dynamic-site" to try run my application, to start my server I've typed: http-server simple-dynamic-server
So now I want to run app.js instead of typing in command line "node app.js" Now my server just show the directory files.
Gustavo Buarque
7,113 PointsI believe no one understood my problem, I'm going to explain in another way.
If I install http-server using npm how can I run a node application that doesn't have an index.html file?
Mohamad Fadhli Ismail
11,935 PointsMohamad Fadhli Ismail
11,935 PointsAt top right of the page, there's a workspaces button. Click on it and it will show any projects you've done in the past.