From the course: Learning Node.js

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set up MongoDB

Set up MongoDB - Node.js Tutorial

From the course: Learning Node.js

Start my 1-month free trial

Set up MongoDB

- Let's begin by setting up the Mongo DB environments. We could download and run Mongo DB locally, but then when it comes time to publishing the app, we will need to host it separately or find a third party host for it. Might as well do that now to save a step. We will use a service that offers free hosting called mLab. Please head over to mlab.com and create a free account. mLab is now part of Mongo DB and a few things might look different. But the tools to set up and manage a database should be the same. If you have any previous databases, you can see them listed here. Otherwise, let's select Create New. I'll leave Amazon selected and then select Sandbox, but you can use any other option that you like as most of them offer free services. Then I'll select continue. In my case I'll use US East and I'll hit continue again, and I'll call my database learning-node. But you can call yours whatever you like. Let's confirm, make sure that it's free and then we can submit the order. Within a…

Contents