Introduction
Databases
NoSQL vs SQL
What is Mongo?
NoSQL document database Dynamic Scheme Binary JSON Full index support Map/Reduce & Aggregation Scale & Availability
Installing Mongohttps://docs.mongodb.com/manual/installation/
Using MongoRun an instance of MongoDB with
mongod
in a terminal, open up another tap and open a mongo client that connects to the previous instance of Mongo, withmongo
. Use a databse called demo,use demo
, andshow collections
to show what documents are stored, it should be empty since it is a new database. To Insert new data to a collection called names, usedb.names.insert({name: "IoT Champion"})
, show what collections we have nowshow collections
and the new collection should come up, then find all data in our collectiondb.names.find()
and insert new datadb.names.insert({name: "IoT Champion"}, power: "Over 9000")
.
References
http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and
Last updated