MongoDB for Developers with Python Transcripts
Chapter: Setting up your computer to follow along
Lecture: MongoDB and the tools we will use

Login or purchase this course to watch this video and the rest of the course contents.
0:01 In order for you to get the most out of this course
0:03 you're going to need to fallow along.
0:05 We were talking about the Mongo shell you should open it up and play around.
0:07 When we work with PyMongo, you should pip install it
0:10 and write some code to talk to your local MongoDB server.
0:13 When we're doing MongoEngine or working with indexes,
0:15 again, you should follow along and do these things.
0:18 In order to do that, you're going to need some software,
0:20 you're going to need some starter code to get going
0:22 and you're going to need basically to have MongoDB set up and configured correctly.
0:26 So in this part of the course, let's talk about
0:28 getting your machine set up so you can follow along.
0:30 This is a course about MongoDB, so it shouldn't be
0:33 terribly surprising that it's going to require MongoDB.
0:35 Now if you look across the bottom here you can see
0:37 there is a version for Windows, Linux and MacOS.
0:40 So regardless of what operating system you are using
0:43 you should be able to use MongoDB installed locally and work with it there.
0:48 There are hosted services, places like ObjectRocket and Mlab
0:52 and if for some reason you can't install MongoDB and configure it,
0:55 unlikely, but possible, you could actually connect to one of those services.
0:59 But we're going to assume that you can set it up locally
1:01 and I will walk you through step by step
1:03 how to do that for each and every operating system below,
1:06 with the exclusion of Solaris of course.
1:08 Now, this is MongoDB for Python Developers
1:11 so it shouldn't surprise you that hey we're going to need Python,
1:13 and we're focusing on Python 3, so most new projects are created in Python 3,
1:17 it's the future of Python, so we're definitely focusing on Python 3,
1:21 that said, the things we're doing are not super specific to Python 3,
1:24 it should pretty much work across all the versions
1:27 in case you happen to be using a legacy Python.
1:29 So do you need to install Python 3?
1:31 Well that depends if you're working on Ubuntu,
1:34 you probably already have at least Python 3.5 on your system.
1:37 If you're on MacOS, by default you have Python,
1:40 but only legacy Python, only Python 2, not Python 3, so you'll need to install that.
1:44 And if you are on Windows, unless you've done something special
1:48 there is no version of Python, so make sure
1:50 you get Python 3 from, download and install it.
1:54 Now we're going to write a lot of code in here, that's good,
1:56 I think that's the way coding course should be,
1:59 and we're going to use the editor from Jetbrains called PyCharm.
2:03 In my opinion, this is the best tool for working with Python code
2:07 and you'll even have plugins for MongoDB if you go and search
2:10 their tool repository, so we're going to use PyCharm.
2:13 Now, PyCharm is available in two flavors,
2:16 there is a community free open source edition, and there's the pro edition.
2:21 If you have the pro edition, feel free to use that,
2:23 but if you don't, you can grab the community edition,
2:26 it will do everything we need for this course.
2:29 If you want to use some other editor, that's totally fine,
2:32 you can use whatever you like, but if you want to follow along exactly,
2:35 I recommend you give PyCharm a shot.
2:37 There is a couple of ways we can work with MongoDB once we have it installed,
2:40 we can use the cli the command line interface to it that comes with MongoDb itself,
2:46 or we can use something called RoboMongo.
2:49 So RoboMongo in my opinion is the best way to work with MongoDB
2:54 the idea is you can see a little dark gray area, that's basically the shell
2:58 and you can type as if that was a command line interface.
3:01 However, it operates inside this gui so you could write a little bit of cli stuff
3:05 and then go interact with the stuff visually, and this is a really, really nice balance
3:09 of giving you the full power of MongoDB, but also a lot of visual support.
3:13 I think it's super productive and is great.
3:16 You can see there's screenshots for all the three major operating systems,
3:19 so whatever operating system you use, RoboMongo is going to work great,
3:23 it's also free and it's also open source, how about that.
3:26 Finally, when we write that code with PyCharm,
3:28 you're going to want to be able to take it with you.
3:31 Sometimes you might want to grab the finish code
3:33 that you saw me create in the video and run it,
3:35 other times, we might have started not from a blank empty file
3:38 but from some sort of starter code
3:41 that got us further along in the demo from the beginning.
3:43 We also have a couple of large databases
3:46 that you want to get access to for the performance section of the course,
3:50 all those and more are contained in this github repository here,
3:53 so
3:58 so be sure right now to pause this video, go over here
4:02 and star and maybe even fork this repository so you're sure to have it with you.
4:06 And also download or clone it to your local drive,
4:10 because you're going to want to have this to work from, as you go through the course.
4:13 So there you have it, that's the software source code
4:16 and tools that were going to use. What we're going to do next,
4:18 I'm going to walk you through each operating system, Windows, MacOS, and Linux
4:21 and show you how to set up the tools and how to configure MongoDB
4:25 and get everything working just right.
4:28 If you're a Linux person, there is no reason to watch the say Windows version,
4:32 so pick the video that matches your operating system, skip the others.