320 likes | 340 Views
MongoDB is a document database with the scalability and flexibility that you want. It is a very popular database used with many web applications.<br>This simplilearn presentation on 'Node.js MongoDB Tutorial' will help you in connecting your web application with a MongoDB database.<br><br>What is MongoDB? <br>why connect Node.js with MongoDB?<br>MERN Stack<br>Nodejs MongoDB web application <br><br><br>This Node.js training enables you to build network applications quickly and efficiently using JavaScript. The Node.js certification training course is designed to help developers understand and build web applications with the help of JavaScript.<br><br>Node.js Training Key Features<br>1. 100% Money Back Guarantee<br>2. 36 hours of instructor-led online training<br>3. Three real-life, industry-based projects<br>4. 16 chapter-end quizzes<br>5. Master Node.js, Socket.io, Express.js with MongoDB, and SQLite<br>6. Flexibility to choose classes<br><br>Node.js Course Overview:<br>The Node. js certification training course helps you gain an in-depth knowledge of concepts such as Express.js, Node Packet Manager (NPM), shrink-wrap, NPM Vet, REST, Express.js with MongoDB, and SQLite CRUD operations. This Node.js training focuses on the essential concepts of Node.js and provides hands-on experience in building an HTTP server.<br><br>Eligibility:<br>This Node.js Certification Training is ideal for technical project managers, technical leads, full-stack web developers, quality analysts, architects, and students or aspiring professionals who wish to lead web development.<br><br>ud83dudc49Learn more at: https://bit.ly/2W6kBXN<br>
E N D
What’s in it for you? What is MongoDB?
What’s in it for you? What is MongoDB? Why connect Node.js with MongoDB?
What’s in it for you? What is MongoDB? Why connect Node.js with MongoDB? MERN Stack
What is MongoDB? • MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability
What is MongoDB? • MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability • MongoDB works on concept of collection and document
What is MongoDB? • MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability • MongoDB works on concept of collection and document • It is a NoSQL database and is written in C++
What is MongoDB? • MongoDB is a cross-platform, document-oriented database that provides, high performance, high availability, and easy scalability • MongoDB works on concept of collection and document • It is a NoSQL database and is written in C++ • To be able to use MongoDB, download the free MongoDB database from the official website
Why connect Node.js with MongoDB? • All the modern applications require big data, fast features development, flexible deployment • The older database systems can have issues competing with modern scalability needs • MongoDB was needed to address both challenges
Why connect Node.js with MongoDB? • The primary purpose of building MongoDB is: • Scalability
Why connect Node.js with MongoDB? • The primary purpose of building MongoDB is: • Scalability • Performance
Why connect Node.js with MongoDB? • The primary purpose of building MongoDB is: • Scalability • Performance • High Availability
Why connect Node.js with MongoDB? • The primary purpose of building MongoDB is: • Scalability • Performance • High Availability • Scaling from single server deployments to large, complex multi-site architectures
Why connect Node.js with MongoDB? • The primary purpose of building MongoDB is: • Scalability • Performance • High Availability • Scaling from single server deployments to large, complex multi-site architectures • Easily deploy, operate, and scale the databases across the leading cloud platforms like Microsoft Azure, AWS, etc.
Why connect Node.js with MongoDB? • It is used in large implementation areas like: • Big Data
Why connect Node.js with MongoDB? • It is used in large implementation areas like: • Big Data • Content Management and Delivery
Why connect Node.js with MongoDB? • It is used in large implementation areas like: • Big Data • Content Management and Delivery • Mobile and Social Infrastructure
Why connect Node.js with MongoDB? • It is used in large implementation areas like: • Big Data • Content Management and Delivery • Mobile and Social Infrastructure • User Data Management
Why connect Node.js with MongoDB? • It is used in large implementation areas like: • Big Data • Content Management and Delivery • Mobile and Social Infrastructure • User Data Management • Data Hub
Creating a MongoDB database in Node.js varMongoClient = require('mongodb').MongoClient; varurl = "mongodb://localhost:27017/mydb"; MongoClient.connect(url, function(err, db) { if (err) throwerr; console.log("Database created!"); db.close(); }); • To create a database in MongoDB: • start by creating a MongoClient object • then specify a connection URL with the correct ip address and the name of the database you want to create
MERN Stack • MERN Stack is a JavaScript Stack that is used for building modern single-page applications. • MERN Stack comprises of 4 technologies namely: MongoDB, Express, React and Node.js. It is designed to make the development process smoother and easier.
MERN Stack • The phrase “MERN stack” refers to the following technologies: • MongoDB: MongoDB is a cross-platform document-oriented database program
MERN Stack • The phrase “MERN stack” refers to the following technologies: • MongoDB: MongoDB is a cross-platform document-oriented database program • Express.js: Express.js, or simply Express, is a web application framework for Node.js
MERN Stack • The phrase “MERN stack” refers to the following technologies: • MongoDB: MongoDB is a cross-platform document-oriented database program • Express.js: Express.js, or simply Express, is a web application framework for Node.js • React: React is a JavaScript library for building user interfaces.
MERN Stack • The phrase “MERN stack” refers to the following technologies: • MongoDB: MongoDB is a cross-platform document-oriented database program • Express.js: Express.js, or simply Express, is a web application framework for Node.js • React: React is a JavaScript library for building user interfaces. • Node.js: Node.js is an open-source, cross-platform JavaScript run-time environment that executes JavaScript code outside of a browser
DEMO This is the DEMO slide