MongoDB - noSQL Database
This course covers the basics of working with MongoDB. Work your way through the videos/articles and I'll teach you everything you need to know to interact with Mongo's flexible document database management system and create powerful document databases!

Mac Installation

Lesson 2
Author : 🦒
Last Updated : December, 2017


Instructions

Download using brew

  1. Execute the following commands
    • brew update
    • brew install mongodb Download the Binary
  2. Download MongoDB Community Server Binary
  3. Extract the files (double click) into the downloads folder
    • I just put them at the root directory of the home folder
  4. Configure command line to recognize ‘mongod’ command
    • echo ’export PATH=/Users/Mike/mongodb-osx-x86_64-3.6.0/bin:$PATH’ » ~/.bashrc

Download Compass

  1. https://www.mongodb.com/download-center#compass

Configure

  1. Create ‘/data/db’ directory
    • Create this at root directory of hard-drive
      • Ensure that current user has read/write permissions
    • Or customize location using:
      • mongod –dbpath
      • I put this at the root directory of my home folder
  2. Start MongoDB server
    • mongod
  3. Connect to MongoDB server from client – (in new terminal window) mongo –host localhost:27017 – (in compass) use the default settings