Skip to content

Instantly share code, notes, and snippets.

@tbogin
Last active June 29, 2017 19:54
Show Gist options
  • Save tbogin/1bca733af1c6a31a382e85030f65dacc to your computer and use it in GitHub Desktop.
Save tbogin/1bca733af1c6a31a382e85030f65dacc to your computer and use it in GitHub Desktop.
Using Mongo DB
  1. Download MongoDB
  2. Open the MongoDB console with

mongo

  1. db.createCollection(banana) will create a collection named banana
  2. db.banana.insert({name: "Cavendish"}) will create a new record in your banana collection of {name: "Cavendish"} db.banana.find() will bring up the banana collection Start mongo server with

mongod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment