these files can be found at: F:\apachefriends\xampp\htdocs\MONGO_DB\TUTORIAL\tutorial1
Webune
    webune.com
    Login
    Register
video 1 - MongoDB Explained
https://www.youtube.com/watch?v=xrc7dIO_tXk&list=PL4RCxklHWZ9v2lcat4oEVGQhZg6r4IQGV&index=1
VIDEO 1
https://youtu.be/xrc7dIO_tXk
7:58
youcan download and use the mongodb
8:00
opensource community server
8:01
onyour hardware for free
https://www.mongodb.com/try/download/community
 
orcloudbase: you can start free also
https://www.mongodb.com/atlas/database
 
8:34
compass isthe gui for mongodb it's
8:36
availableon
8:37
linuxmac or windows it allows you to
8:40
visuallyexplore your data
8:42
runad hoc queries in seconds

https://cloud.mongodb.com
mongodb atlas
mlab my name.com
regualr not normal
Create > Shared > Select Provider > AWS > Oregon(us-west-2) > M0 Sandbox(Shared RAM, 512 MB Storage) > MongoDB 5.0, No Backup > Cluster Name= Cluster1 > Create Cluster
. . . > Load Sample Data
Go to Database Access> Add New Database User
Go to network access > Add Ip Address
Go to Databases > Browse Collections
Filter that withbedrooms that are greater than 3: {"bedrooms":{$gt:3}} [HIT APPLY]
Connect with VS CodeExtension:
You should see yourclusters and your documents. From here you can create new databases or newcollections (table)
You can also create aplayground, on this image, click on create new playground and the template willshow
// Select the database to use.
use('mongodbVSCodePlaygroundDB')
// The drop() command destroys all data from a collection.
// Make sure you run it against the correct database andcollection.
db.sales.drop();
// Insert a few documents into the sales collection.
db.sales.insertMany([
Returns an array of 3documents with the calculated sales amount:
Now refresh and you willsee the new database that was created
You can go back to atlasand confirm the db was created
0
0
Leave Your Comments
Secured | No Login Required!
copyright © 2022 Webune