# Introduction

Databases

## NoSQL vs SQL

## What is Mongo?

> NoSQL document database *Dynamic Scheme* Binary JSON Full index support Map/Reduce & Aggregation Scale & Availability
>
> ## Installing Mongo
>
> <https://docs.mongodb.com/manual/installation/>
>
> ## Using Mongo
>
> Run 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, with `mongo`. Use a databse called demo, `use demo`, and `show 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, use `db.names.insert({name: "IoT Champion"})`, show what collections we have now `show collections` and the new collection should come up, then find all data in our collection `db.names.find()` and insert new data `db.names.insert({name: "IoT Champion"}, power: "Over 9000")`.

## References

<http://blog.mongodb.org/post/49262866911/the-mean-stack-mongodb-expressjs-angularjs-and>
