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 User Authentication With Express and Mongo What is Authentication? Setting Up the Project

I cant do this course its really frustrating...

dave dont explain how to setup the project files well, I get this error everytime i do node app.js...

What is your error?

3 Answers

Dale Severude
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Dale Severude
Full Stack JavaScript Techdegree Graduate 71,349 Points

To setup the project you will need to copy over the project files to your computer and then at the terminal run npm install to install all the dependencies.

To start the project run mongod at the terminal and then open a second terminal window and run npm start.

To view the website, open a browser and go to the URL: http://localhost:3000

This is assuming you have already installed npm, node, and mongoDB from previous courses. If not, you may want to take the prerequisites first.

Julian Shadrin
Julian Shadrin
15,727 Points
  1. Open terminal in IDE
  2. Open code project folder in IDE
  3. Type "ls" into terminal for current folders in code project folder
  4. Type into terminal "cd S1V4" then press tab to autocomplete file path
  5. You should now be in correct file path for start of this lesson e.x.(JavaScript-user-auth-express\JavaScript-user-auth-express\S1V4\public
  6. Type in "npm install"

how to set up mongodb, how to even start the project, i dont know how to access the file in the cmd