Popular Post: NodeJs
In this tutorial, you will lean how to download and install Node.js on your computer.
NodeJs has a set of built-in modules. To include a module, use the require() function with the name of the module.
In NodeJs, HTTP Module allows Node.js to transfer data over the HTTP. Use the require() method to include include the HTTP module.
The Nodejs file system module allows you to work with the file system. Use the require() method to include File System module.
In NodeJs, To include the URL module, use the require() method. The URL module splits up a web address into readable parts.
NPM is a package manager for NodeJs packages or modules. The NPM program is installed on your computer when you install Node.js
NodeJs is event-driven. Objects in Nodejs can fire events, like the readStream object fires events when opening and closing a file.
In NodeJs, Formidable module can be used to upload file. The Formidable module can be downloaded and installed using NPM.
In NodeJs, The Nodemailer module is used to send emails from your computer. The Nodemailer module can be downloaded and installed using npm.
NodeJs can be used in MySQL database to create applications. MySQL is one of the most popular database.
In NodeJs, to create a database in MySQL, use the CREATE DATABASE statement.
In NodeJs, To create a table in MySQL, use the CREATE TABLE statement after define the database.
In NodeJs, the INSERT INTO statement is used to insert data into MySql Table.
In NodeJs, the SELECT statement is used to select records from table in MySQL.
In NodeJs, the WHERE statement is used to filter the selection when selecting records from Table.
In NodeJs, the ORDER BY statement is used to sort the result in ascending or descending order.
In NodeJs, the DELETE FROM statement is used to delete records from an existing table.
In NodeJs. DROP TABLE statement is used to delete an existing table.
In NodeJs, You can update existing records in a table by using the UPDATE statement.
You can limit the number of records returned from the query, by using the LIMIT statement.
In NodeJs, by using a JOIN statement you can combine row from two or more tables.
NodeJs can be used in database applications. One of the most popular NoSQL database is MongoDB.
In MongoDB, First we create a MongoClient object, then specify a connection URL with the correct ip address and Database.
In MongoDB, the createCollection() method is used to create a collection. Is is the same as a table in MySQL.