A workshop on NoSQL databases such as MongoDb that explores both theory and practice by using MongoDb and Neo4j databases.
- NoSQL Workshop Gitbook
- Workshop Details
- Database Theory
- NoSQL Databases
- MongoDB
- BSON Specification
- BSON Data Types
- Mongo Shell
- Mongo CRUD Operations
- Mongo CRUD Operations Part II
- Mongo CRUD Operations Part III
- Mongo CRUD Concepts
- MongoDB Aggregation
- MongoDB Data Models Part I
- MongoDB Data Models Part II
- MongoDB Transactions
- MongoDB Indexes Part I
- MongoDB Indexes Part II
- MongoDB Query Performance
- MongoDB Security
- MongoDB Change Streams
- MongoDB Replication
- MongoDB Sharding
- MongoDB Administration
- MongoDB Storage
Here is the gitbook for the NoSQL Workshop
- Install Docker
- Clone this repo:
git clone https://github.com/jbelmont/nosql-workshop.git
Since Docker leverages the Operating System's virtualization technologies, the install requirements for Docker are specific.
OS X requirements:
- 2010 or newer model with Intel's MMU virtualization
- OS X El Capitan 10.11 or newer
Windows requirements:
- 64-bit Windows
- Windows 10 Pro, Enterprise or Education (not Home, not Windows 7 or 8) to install Hyper-V
- Windows 10 Anniversary Update or better
- Access to your machine's BIOS to turn on virtualization
Please run the following command to pull the official mongo docker image:
docker pull mongo:4.0.5
You can also pull my own docker image which has vim installed:
docker pull jbelmont/nosql-mongo-image-with-scripts:v1
##! /bin/bash
docker run --name mongo-image-4-with-scripts \
--rm \
-v ~/mongod_data.4.0.5:/data/db \
-p 27017:27017 \
-v /var/run/docker.sock:/var/run/docker.sock \
-d jbelmont/nosql-mongo-image-with-scripts:v1
Then you can run the script like this in a Unix Shell:
sh scripts/run-mongo-shell-with-script-files-image.sh
sudo apt install mongodb-clients
OSX via Homebrew
brew tap mongodb/brew
brew install mongodb-community@4.0
Windows via chocolatey
choco install mongodb
Once you run the above command you should be able to get into running docker container like this in a shell session:
mongo localhost:27017