Download MongoDB community server
https://www.mongodb.com/download-center/community
Unzip the file in downloads
mongodb-osx-ssl-x86_64-4.0.4.tgz => mongodb-osx-ssl-x86_64-4.0.4
Copy the file to the bin directory. Open Terminal
cd mongodb-osx-ssl-x86_64-4.0.4
cd bin
mkdir /usr/local/bin/mongodb
cp * /usr/local/bin/mongodb
sudo mkdir -p /data/db
sudo chmod 777 /data
sudo chmod 777 /data/db
Add the MondgoDB file path to .bash_profile
$ nano ~/.bash_profile
Add the following line to .bash_profile and save:
export PATH=/usr/local/bin/mongodb:$PATH
You'll probably need to restart the terminal session for path to be applied.
Start MongoDB by typeing mongod (d is for daemon)
$ mongod
Open a new terminal window and switch to the directory, type mongo
$ mongo
Insert a test record
> db.users.insert({"fullname": "robert amiscaray"})
Install Python 3 by doing brew install python. Note: PIP3 will also be installed.
$ brew install python
Install httpie for http helpers
$ sudo -H pip3 install httpie