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 User Registration Adding Data to the Database

When you said I have to run the executable for mongod am I meant to do this via command line in windows?

I installed mongodb via npm installer from command line as well as mongoose. I have created an account with mongodb on their website and have created a free cluster.

I am not sure if my mongo is running.

1 Answer

Ken Alger
Ken Alger
Treehouse Teacher

Not sure what you mean here, S K. mongod will run on your local machine and is launched from a terminal window. If you've created an account and M0 cluster on MongoDB Atlas, you can use that as well. However, they are two separate things. One runs on your local machine, mongod instance. The other, MongoDB Atlas, runs in the cloud.

For the local installation, you can connect with the mongodb://localhost:27017 connection string (assuming you didn't change the default port). For MongoDB Atlas you will need the connection string associated with your cluster, along with the user name and password that will grant you the appropriate access to the database.

Post back if you're still stuck.