In order to load the sample data and Python code needed to run the examples shown in this book, you will need to either clone the GitHub repository for the book or download and unzip it. The code repository for the book is located here:
https://github.com/PacktPublishing/Learn-MongoDB-4.x
How you can go about restoring the source code and sample data depends on whether or not you have git installed on your computer. Accordingly, we'll look at two techniques, with and without using git.
Here are a series of steps to restore the sample data using git:
- From a browser, enter the following URL:
https://github.com/PacktPublishing/Learn-MongoDB-4.x
- Locate the green button that says Code.
- Click on the down arrow, and select the clipboard icon to copy the repository URL:
- Open a Terminal window (or, if using Git for Windows, open the provided Bash shell) and make and/or change to a directory under which you are prepared to clone the...