Node.js MySQL

December 29, 2018 admin 3

Node.js can be used in database applications. One of the most popular databases is MySQL. Install MySQL Driver Using npm C:UserspcDesktopnodeJsTest>npm install mysql [{“id”:1,”name”:”Dr.Chandana”},{“id”:2,”name”:”Dr.Cooray”},{“id”:3,”name”:”Prof. Cooray”},{“id”:4,”name”:”Dr.Kumari”}]  3,294 total views

 3,294 total views

Node.js Send an Email

December 29, 2018 admin 4

The Nodemailer Module The Nodemailer module makes it easy to send emails from your computer. The Nodemailer module can be  installed using npm command see example. C:UserspcDesktopnodeJsTest>npm install nodemailer var nodemailer = require(‘nodemailer’); Send an Email Now you are ready to send emails from your server. Use the username and password […]

 3,229 total views

Node.js Modules

December 29, 2018 admin 1

What is a Module in Node.js? A set of functions that you want to include in your application. Built-in Modules Node.js has a set of built-in modules that you can use without any further installation. Examples: assert Provides a set of assertion tests buffer To handle binary data child_process To […]

 3,251 total views,  1 views today

Node.js-Introduction

December 27, 2018 admin 6

Key Points – Node.JS Open Source Cross Platform Javascript Runtime Environment Execute in Server Side Runs on V8 Engine Written in (JS) + (C++) Version History Why Node.JS Special? Let’s get Idea of Why we use Node.JS Javascript Everywhere Allowing web application development to unify around a single programming language, rather than […]

 2,962 total views,  1 views today