Join Kirsten Hunter for an in-depth discussion in this video Environment setup, part of Learning MongoDB.
- [Instructor] It's time to set up Node and HTTPie for the course. To install Node.js, start at the Nodejs.org download page. Click on the installer for your system. On either system you may get a permissions prompt and click through for the installation. Now we're going to install all the needed libraries.
So open up your terminal, change into your exercise files directory, and run npm install. This will install all of the files you need in order to run the examples in the course. Next we're going to install HTTPie. In order to install HTTPie, you will need Python and Pip installed on your system. If you prefer to use Curl, that will work as well. Note that for Windows, if you install Python 3, your environment will be set up correctly and Pip will be installed.
For Python 2.7, you will need to install Pip and set your environment variables yourself. Start up the installer and follow the prompts. Note that this one click installer is much easier than earlier versions of Python. Once you have Python installed, you will need to get Pip installed on your system as well, if you don't already have it. Pip is a package manager for Python, and it eases the installation of libraries and dependencies.
If you do need Pip, change into the directory for this video. So cd Chapter0/ 00_05/ and Start. In this directory you can see we have get-pip.py, and we're going to run that to install Pip. If you're on OSX, you're going to need to use sudo for this command. And we'll use the -H flag to avoid cache warnings. So sudo -H python get-pip.py.
Once Pip is installed, you can install HTTPie, and it's as simple as pip install httpie. Once HTTPie is installed, let's just go ahead and make sure that it's installed correctly. Http http://www.lynda.com. And it pulled the file correctly. So now we're all set up and ready to get started with the course.
- Installing MongoDB for Windows and OS X
- Why Mongo?
- Document-oriented data
- Exploring the Mongo shell
- Importing data into the database
- Building an application in Node.js
- Tuning Mongo queries
- Replication and sharding