Sharing Top Content from the Angular-sphere.

Tech Junkie Blog: AngularJS SPA Pt 4: Installing MongoDB

Tech Junkie Blog: AngularJS SPA Pt 4: Installing #MongoDB  #expressjs #nodejs #npm #angularjs

  • 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.
  • msi fileClick “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 installClick “Finish”Open the command line and navigate to the MongoDB “bin” install path which should beC:\Program Files\MongoDB\Server\3.4\binIn order for MongoDB to run you will…
  • 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” buttonYou now have MonoDB running on port 27017, to stop MongoDB type Ctrl+C .
  • Pretty simple right, compared to other databases MongoDB is a lot more simple to setup.

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

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 fileClick “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 installClick “Finish”Open the command line and navigate to the MongoDB “bin” install path which should beC:\Program Files\MongoDB\Server\3.4\binIn 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” buttonYou 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.

Tech Junkie Blog: AngularJS SPA Pt 4: Installing MongoDB

Comments are closed, but trackbacks and pingbacks are open.