create account

MongoDb Tutorial #01 What's MongoDB , MongoDB Databases , Collections And Documents by alexendre-maxim

View this thread on: hive.blogpeakd.comecency.com
· @alexendre-maxim · (edited)
$5.95
MongoDb Tutorial #01 What's MongoDB , MongoDB Databases , Collections And Documents
<html>
<h2><img src="https://user.oc-static.com/upload/2017/09/08/15048760157749_MongoDB.png" width="633" height="172"/></h2>
<p><a href="https://user.oc-static.com/upload/2017/09/08/15048760157749_MongoDB.png">Image Source</a></p>
<h2>Repository</h2>
<p>https://github.com/mongodb/mongo</p>
<h2>What Will I Learn?</h2>
<p>I will learn what's the mongoDb and where to use it , what's the databases and how to create show and drop databases , also what's the collections how to create delete show collections and finally what's the documents how to create &nbsp;, update , delete and fetch documents .</p>
<ul>
  <li>What's mongoDB and where to use it.</li>
  <li>What's the databases and how to create and delete databases .</li>
  <li>What's collections and how to create , show and delete collections .</li>
  <li>What's the documents and how to insert , update , delete and fetch documents .</li>
</ul>
<h2>Requirements</h2>
<ul>
  <li>You must have knowledge about the databases&nbsp;</li>
  <li>You Must have an installed version of mongoDB</li>
  <li>You should know the basics of SQL &nbsp;</li>
</ul>
<h2>Difficulty</h2>
<ul>
  <li>Basic</li>
</ul>
<h2>Description</h2>
<p>In this tutorial we will talk about mongoDB , what's the mongoDB , mongoDB databases , collections and documents .</p>
<h3>1- What's mongoDB ?</h3>
<p>In the past, there was talk about the known data bases between the poles of the programmers from different levels, starting from web developers to the software developers on different platforms, OSX, Linux. The talk was about one type only, RDBMS Relational database management system such as MS SQL Server , IBM DB2, Oracle, MySQL, and Microsoft Access, which rely on saving data within tables. But recently, after the release of a number of JS Frameworks and the rise in the number of JavaScript users, 10GEN started working on a database of a completely different type It is a NoSQL under the name of MongoDB which is a database that has no relationship between the tables and is dependent .</p>
<h3>2 - MongoDB Databases :&nbsp;</h3>
<p><strong>a- What is a database ?</strong></p>
<p>Is a set of tables linked to each other to store information so that it can be easily modified and deleted and searched for automatically</p>
<p><strong>b- Creation of databases :&nbsp;</strong></p>
<p>To create a database you type just ' <code>use nameOfDatabase</code> ' , if there is a database with this name it will switch to it, but if it doesn't exist it will create a new database .</p>
<p><strong>c- Show databases :&nbsp;</strong></p>
<p>To show databases that you have created you must type the command <code>show dbs </code>to show all databases that you have in your local machine .</p>
<p><strong>d- Drop databases :</strong></p>
<p>To drop database you must firstly use it by the <code>use </code>command , then you type <code>db.dropDatabase() </code>it will give as the true value that the database was successfully removed .</p>
<h3>3- Collections :&nbsp;</h3>
<p><strong>a- What's the collections ?</strong></p>
<p>It is similar to the concept of tables in relational database systems, we use it to store data</p>
<p><strong>b- Creation of collections :&nbsp;</strong></p>
<p>To create a collection we have two ways :&nbsp;</p>
<p>- The first is to use ' db.createCollection(name) ' where the name is the name of the collection .</p>
<p>- The second way is to use ' db.createCollection(name, options) ' where the options contains 4 parameters&nbsp;</p>
<p>{ capped : true/false , autoIndexId : true/false , size : number , max : number }</p>
<p><strong>c- Drop Collections :&nbsp;</strong></p>
<p>To delete a collection you must write the name of the collectio then the use the drop method ' <code>db.nameOfCollection.drop()</code> ' it will be removed .</p>
<h3>4- Documents :&nbsp;</h3>
<p><strong>a- what's the documents ?</strong></p>
<p>It's data stored in collections , it depends on ' &nbsp;<strong>Binary Encoding Of JSON Objects</strong> &nbsp;' format.</p>
<p><strong>b- Creation of document :&nbsp;</strong></p>
<p>To create a new document we must use the collection then insert into it a new document as an object&nbsp;</p>
<p><code>db.nameOfCollection.insert({name:'alexendre'})</code></p>
<p><strong>c-Update document :&nbsp;</strong></p>
<p>To update document we can use the update method that has two parameters , the first is the document that we want to update and the second is the document that we will set&nbsp;</p>
<p><code>db.nameOfCollection.update({name:'alexendre'},{name:'maxim'})</code></p>
<p><strong>d- Delete document :&nbsp;</strong></p>
<p>To remove a document we use the remove method , but it must has a query or a condition for example&nbsp;</p>
<p><code>db.nameOfCollection({name:'alexendre'})</code></p>
<p>it will remove the document that has the name equals to alexendre.</p>
<p><strong>e- Fetch data :</strong>&nbsp;</p>
<p>To get the data in a collection we use the find() method it will give as the data as &nbsp;<strong>Binary Encoding Of JSON Objects</strong> format</p>
<p><code>db.nameOfCollection.find()</code></p>
<p>To get the first object of this collection we use <code>db.nameOfCollection.findOne()</code> , it will give us the first document.</p>
<p>And we have other method to show the documents in other form <code>db.nameOfCollection.find().pretty()</code></p>
<h2>Video Tutorial</h2>
<p>https://www.youtube.com/watch?v=3-AJdqFdEjc</p>
<h2>Curriculum</h2>
<ul>
  <li>This is the first tutorial in this series .</li>
</ul>
<h2>Proof of Work Done</h2>
<p>https://github.com/alexendre-maxim/mongoDB</p>
</html>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 13 others
properties (23)
authoralexendre-maxim
permlinkmongodb-tutorial-01-what-s-mongodb-mongodb-databases-collections-and-documents
categoryutopian-io
json_metadata{"tags":["utopian-io","video-tutorials","video","programming"],"image":["https://user.oc-static.com/upload/2017/09/08/15048760157749_MongoDB.png","https://img.youtube.com/vi/3-AJdqFdEjc/0.jpg"],"links":["https://user.oc-static.com/upload/2017/09/08/15048760157749_MongoDB.png","https://github.com/mongodb/mongo","https://www.youtube.com/watch?v=3-AJdqFdEjc","https://github.com/alexendre-maxim/mongoDB"],"app":"steemit/0.1","format":"html"}
created2018-06-30 15:56:57
last_update2018-06-30 15:58:39
depth0
children2
last_payout2018-07-07 15:56:57
cashout_time1969-12-31 23:59:59
total_payout_value4.663 HBD
curator_payout_value1.289 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5,604
author_reputation18,071,828,077,109
root_title"MongoDb Tutorial #01 What's MongoDB , MongoDB Databases , Collections And Documents"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id62,887,780
net_rshares2,458,380,507,902
author_curate_reward""
vote details (77)
@buckydurddle ·
Thank you for your contribution. The following are some of my thoughts on your lesson and suggestions as to how you can improve on your video tutorials. 

- Your language is at times difficult to follow as you often seem to lose you place and say, "ahh." This can be distracting for learners. You need to take your time and speak clearly and slow. 

- Many of the concepts are touched on too briefly. Unless you show a thorough lesson on each and every topic it is of no value to learners. 

- I think you tried to cover too many things in this tutorial. Many concepts go by too quickly. You need to thoroughly explain why you are doing the things you do. 

- If you make a mistake, like 24:40 you need to edit it out. 

- I would like to see more explanation about the functions you are showing. Often times you showed how to do certain things but you did not explain specifically why and how you did them. For example, around 20:00 you talked about find but did give details about why you used specific commands. Things went by too fast. 

- Font size is far too small. You need to enlarge your font so learners can easily read it. Make your terminal window full screen at the very least.

- I liked that you created some graphics at 8:00 but you need to prepare this offline then use it quickly in your video. Do not create them as part of the video. Learners do not want to see this. 




Your contribution has been evaluated according to [Utopian policies and guidelines](https://join.utopian.io/guidelines), as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, [click here](https://review.utopian.io/result/9/224333444).

---- 
Need help? Write a ticket on https://support.utopian.io/. 
Chat with us on [Discord](https://discord.gg/uTyJkNm). 
[[utopian-moderator]](https://join.utopian.io/)
properties (22)
authorbuckydurddle
permlinkre-alexendre-maxim-mongodb-tutorial-01-what-s-mongodb-mongodb-databases-collections-and-documents-20180702t195530510z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"links":["https://join.utopian.io/guidelines","https://review.utopian.io/result/9/224333444","https://support.utopian.io/","https://discord.gg/uTyJkNm","https://join.utopian.io/"],"app":"steemit/0.1"}
created2018-07-02 19:55:27
last_update2018-07-02 19:55:27
depth1
children0
last_payout2018-07-09 19:55:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,884
author_reputation101,965,608,464,038
root_title"MongoDb Tutorial #01 What's MongoDB , MongoDB Databases , Collections And Documents"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,180,413
net_rshares0
@utopian-io ·
Hey @alexendre-maxim
**Thanks for contributing on Utopian**.
We’re already looking forward to your next contribution!

**Want to chat? Join us on Discord https://discord.gg/h52nFrV.**

<a href='https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1'>Vote for Utopian Witness!</a>
properties (22)
authorutopian-io
permlinkre-mongodb-tutorial-01-what-s-mongodb-mongodb-databases-collections-and-documents-20180702t200509z
categoryutopian-io
json_metadata"{"app": "beem/0.19.29"}"
created2018-07-02 20:05:09
last_update2018-07-02 20:05:09
depth1
children0
last_payout2018-07-09 20:05:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length307
author_reputation152,955,367,999,756
root_title"MongoDb Tutorial #01 What's MongoDB , MongoDB Databases , Collections And Documents"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id63,181,344
net_rshares0