Tech Junkie Blog: AngularJS SPA Pt 4: Installing MongoDB

Thursday, March 2, 2017

AngularJS SPA Pt 4: 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"

Click "Install"

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

Click "Finish"

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

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.

Posts In The AngularJS SPA Application Series:
  1. Setting Up Angular-Seed
  2. Preparing Angular-Seed For The Shopping List Application
  3. Refactor Code to Not Use Global Variables (Shopping List App)
  4. Installing MongoDB
  5. Create a MongoDB Configuration FIle
  6. Install mongoDB as a Windows Service
  7. Installing Express generator
  8. Installing ExpressJS Application Server
  9. Creating The SPA Project Folder Structure
  10. Setup Express To Serve Static Files
  11. Setup The Shopping Application For Heroku And Testing It Locally
  12. Deploy Shopping List Application To Heroku
  13. Install RoboMongo GUI for MongoDB


  1. You may need better security or disaster redundancy because your data is sensitive. You may need faster performance. You may need to run on an operating system that is not UNIX or Windows.dashboard software

  2. You have explained well about AngularJS SPA Pt 4- Installing MongoDB with screenshot. Great effort. Keep sharing more useful information.

  3. Sometime in the past having the correct drivers introduced on a Windows PC was considered something of a joke. It was normally started by the no-nonsense Apple Mac clients, and worked basically on the grounds that those computers had such a restricted scope of equipment accessible. Any gadgets that would work as of now had the drivers introduced.
    C21eureka online
    Copyright Space
    Orion Art Gallery
    Mclaughlin and Erson

  4. A most recent innovation to the out-dated LAMP/WAMP stack for building proficient sites and continuous applications is MEAN (MongoDB, Express, AngularJS, Node.js) stack, which is an open-source programming. mongodb development service Tellls MEAN is only an adjustment of code and innovation overhauls exchanging the base stage from Linux OS to a JavaScript run-time which brings Node.

  5. We may require better security or fiasco repetition in light of the fact that your information is touchy. We may require speedier execution. The Best video mongodb development service Says.. We may need to keep running on a working framework that isn't UNIX or Windows.