Tech Junkie Blog - Real World Tutorials, Happy Coding!: AngularJS SPA : Installing MongoDB

Thursday, March 2, 2017

AngularJS SPA : Installing MongoDB

Now that we have our AngularJS environment set up we need a database.  We are going to use MongoDB as a database.  MongoDB is a NoSQL database which is a perfect fit for JavaScript centric applications that we are building.  To install MongDB go to to make sure you are installing the "Community Edition" of MongoDB.  On the "Community Server" tab select the operating system that you will be installing MongoDB in, then click on the "Download button.

Once the download is completed double click on the .msi file

Click "Next" on the welcome screen.

Accept the terms and services, then click "Next"

Select "Complete"

Select "Install MongoDB as a Service" and accept the defaults, then click "Next"

Click "Install"

Accept the Windows "User Account Control" prompt and MongoDB will automatically install

Click "Finish"

Now if you look at the Windows Services dialog you will see that MongoDB was added to the services

Open the command line and navigate to the MongoDB "bin" install path which should be

C:\Program Files\MongoDB\Server\4.0\bin

Type mongo and you should be connected to your MongoDB instance

For Older Versions:

C:\Program Files\MongoDB\Server\3.4\bin

In order for MongoDB to run you will need to create a directory in Windows where the data will be stored.  Type "md \data\db"

Now that the data directory has been created you can run MongoDB with command "mongod"

If you get a Windows firewall alert click on the "Allow access" button

You now have MonoDB running on port 27017, to stop MongoDB type Ctrl+C .  That's it! Pretty simple right, compared to other databases MongoDB is a lot more simple to setup.


  1. Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging.. click over here now

  2. I read your blog frequently and I just thought I’d say keep up the amazing work! alternatives to google maps

  3. Ensured to discover a spa treatment to suit you, this day spa will provide food for all your needs. On the off chance that you are uncertain of what spa treatment to have let your magnificence advisor suggest the ideal spa treatment for your way of life. アロマエステ

  4. For certain individuals their degree of solace might be to keep the entirety of their garments on. 수원건마 추천

  5. greatI read your blog frequently and I just thought I’d say keep up the amazing work!

  6. Excellent post. I certainly appreciate this website.Keep writing.well here if you want to Overcome the issues of Avast antivirus.Pick the Best Assistance over our site to resolve your queries.Visit us :avast antivirus ondersteuning

  7. I like your blog.You have done Excellent work. I appreciate.Here I want to inform all of you if you are looking for to resolve your Norton Antivirus problems,so you are in right place.we always available for your support.So whenever you need any help so just click on this link- norton Antivirus ondersteuningsnummer

  8. I’m really impressed with your writing skills and also with the layout on your blog it's Very interesting to read.Now Here i would llike to share some information about HP Printer If you are facing any problem relate to your HP Printer's we wil resolve your queries at sam time.For any help please visit on our website:hp printer contact belgie

  9. I am really enjoying your site.It’s simple, yet effective, thank you for this article.Now I have to share some information about How To Fix “mcafee Antivirus” problem. If you have any problem rearding Mcafee so click on this site:mcafee antivirus nummer belgie

  10. 오랫동안 찾았던 제 질문에 대한 좋은 글과 대답입니다. 제가 당신의 서비스를 테스트해 보겠습니다.


Search This Blog