This repo contains course notes and Mflix project in Intro to MongoDB course from MongoDB Inc. on Coursera.
Check out https://github.com/Ziang-Lu/Database-Learning-Notes/blob/master/5-MongoDB/MongoDB.md
MongoDB Atlas: Cluster that provides MongoDB hosting service
Check out https://www.mongodb.com/cloud/atlas
Play around with MongoDB Atlas:
-
Import data to MongoDB Atlas
$ cd mflix $ mongoimport --type csv --headerline --file movies_initial.csv --host "Cluster0-shard-0/cluster0-shard-00-00-hanbs.mongodb.net:27017,cluster0-shard-00-01-hanbs.mongodb.net:27017,cluster0-shard-00-02-hanbs.mongodb.net:27017" --db mflix --collection movies_initial --authenticationDatabase admin --ssl --username <username> --password <password>
$ pipenv --python=3.7
$ pipenv shell
# Install all the packages specified in Pipfile
$ pipenv install
-> GUI client for MongoDB
Check out https://www.mongodb.com/products/compass
Check out https://github.com/Ziang-Lu/Database-Learning-Notes/blob/master/5-MongoDB/MongoDB.md
Check out https://github.com/Ziang-Lu/Database-Learning-Notes/blob/master/5-MongoDB/pymongo_demo.py and scripting_data_cleaning.py
Check out the demo files for:
Function | Aggregation |
---|---|
Filtering | $match |
Aggregation | $group , $sortByCount , $bucketAuto |
Parallel pipeline processing | $facet |
Projection | $addFields , $project , $cond |
Post-processing | $sort , $limit , $skip , $out |
Check out mflix
folder, which is the root directory of Mflix project
This repo is distributed under the MIT License.