Skip to content

Instantly share code, notes, and snippets.

@shannonbradshaw
Last active August 4, 2016 18:43
Show Gist options
  • Save shannonbradshaw/661e6232be93b07f57d1f22841c19d39 to your computer and use it in GitHub Desktop.
Save shannonbradshaw/661e6232be93b07f57d1f22841c19d39 to your computer and use it in GitHub Desktop.
  1. Configure and launch a three member MongoDB replica set on your local computer.
  2. Connect to the primary from the mongo shell and create a database called catalog, then insert one document as follows.
use catalog
db.products.insertOne({name: "Coffee Mug", price: 4})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment