MongDB
Just like Postgres before we can start using MongoDB we need to install it on our machines and have it running.
MacOS using Hombrew
brew update
brew install mongodb
Start MongoDB by running
//homebrew users
mongod --config /usr/local/etc/mongod.conf
//ubuntu
mongod
//If there was permissions error when just running mongod make sure that there is a directory /data/db and that directory has permission to read & write for the current user
Ok now that the mongo database is running we can fire up the MongoDB shell by by opening a new tab in our terminal and running this command.
mongo