Overview
MongoDB is a document database that provides high performance, high availability, and easy scalability.
- Document Database
# Create your superuser | |
$ mongo | |
> use admin | |
> db.createUser({user:"someadmin",pwd:"secret", roles:[{role:"root",db:"admin"}]}) | |
> exit | |
# Alias for convenience (optional and at your own risk) | |
$ echo 'alias mongo="mongo --port 27017 -u someadmin -p secret --authenticationDatabase admin"' >> ~/.bash_profile | |
$ source ~/.bash_profile |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |