# m001 **Repository Path**: mirrors_mongodb/m001 ## Basic Information - **Project Name**: m001 - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-09 - **Last Updated**: 2023-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README Overview ======== Here you will find instructions for importing the datasets for `M001: MongoDB Basics `_ into a locally running MongoDB deployment. Datasets ======== All datasets are provided in Amazon S3 in a single zip file (243 MB zipped; 1.5 GB unzipped). The files were created with the `mongodump `_ command. They may be imported into your MongoDB deployment using `mongorestore `_. Note that these datasets include the indexes necessary to support example queries and labs used in M001. The datasets included are as follows. - **100YWeatherSmall** (403 MB) - readings from weather stations throughout the world. - **city** (3.2 MB) - geospatial representations of neighborhoods in New York City. - **citibike** (835 MB) - details for trips taken using `Citibikes `_. - **ships** (3.6 MB) - data on shipwrecks around the world, including geospatial coordinates. - **video** (303 MB) - summary data on movies. Importing Data Locally ====================== These instructions will help you load the M001 datasets into a local MongoDB instance (e.g., MongoDB running on your laptop). Note: this will require approximately 2.5 GB of RAM. 1. Download the `m001-datasets.zip `_ file from S3. 2. Unzip ``m001-datasets.zip``. This will create a directory/folder called ``dump``. 3. Ensure you have a running MongoDB instance. For instructions on installation and setup, see the `MongoDB installation documentation `_. Installation tutorials for all platforms include instructions for running MongoDB (the mongod daemon). 4. Once you have a ``mongod`` instance running, you may import the datasets using `mongorestore `_. a. Open a command shell (e.g., bash, powershell, or cmd). b. Change directory (e.g., ``cd``) to where you unzipped ``m001-datasets.zip``. c. Assuming you are running ``mongod`` on the default port, you may import the datasets from the dump directory by simply running, ``mongorestore``. ``mongorestore`` looks for a directory called ``dump`` to import.