NoSQL Workshop

A workshop on NoSQL databases such as MongoDb that explores both theory and practice by using MongoDb and Neo4j databases.

NoSQL Workshop Gitbook

Here is the gitbook for the NoSQL Workshop

Workshop Details

Preparations:

  • Install Docker
  • Clone this repo: git clone https://github.com/jbelmont/nosql-workshop.git

Docker Prerequisites

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

Install Mongo Docker Image

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

Use the following shell script to get mongo running in your system:

##! /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

Install the Mongo client

Ubuntu/Debian via apt

sudo apt install mongodb-clients

OSX via Homebrew

brew tap mongodb/brew
brew install [email protected]

Windows via chocolatey

choco install mongodb

Get into mongo shell

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