NodeJS Tutorial Day 1

Learning Objective: Let’s explore NodeJS and Learn everything about NodeJS Programming, NodeJS App Development, and Deployment.

What is NodeJS?

Node.js is an open-source, cross-platform, back-end JavaScript runtime environment that runs on a JavaScript Engine and executes JavaScript code outside a web browser. Source Wikipedia

How to Install NodeJS?

NodeJS Download Use this link to install NodeJS on the Latest operating system, If you are using older operating systems like Windows 7 then search like NodeJS for Windows 7

How to Check My Installation is Done or not?

Goto Command Prompt or Terminal and execute the following command, if you get some result on both commands your installation is perfect, if you get an error like command not found then your installation is not done properly.

node -v

npm -v

NodeJS Hello World Program.

Create Folder: C:\NodeJSProgram

Open Visual Studio Code and open this folder

Create a new File named: n1.js

write down the following code

var http = require('http');

http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.end('Hello World!');

Open Terminal with Folder “C:\NodeJSProgram” and run the following command

node n1.js

Goto Browser and open the following URL


NodeJS Tutorial Day 2

Learning Objective: Let’s find rich Modules or Libraries that can help us to build NodeJS App easily. Here are the Node.js Built-in Modules.

For File Write/Read you need the following modules: (fs module)

var fs = require('fs');

fs.readFile('demofile.txt', 'utf8', function(err, data) {
  if (err) throw err;

To display some data in the browser use the following modules: (http module)

var http = require('http');
http.createServer(function (req, res) {
  res.writeHead(200, {'Content-Type': 'text/plain'});
  res.write('Hello World!');

Want to read details about Operating System then use the following modules: (os module)

var os = require('os');
console.log("Platform: " + os.platform());
console.log("Architecture: " + os.arch());

Check out more NodeJS modules

Still looking for more modules here are 1000+ NodeJS Modules

WordPress Tutorial Day 1

Learning Objective: WordPress is Most Popular easy to use Content Management System, Almost 40% of the world’s website is built using WordPress. So Let’s Start with WordPress Installation & Run.

Step 1 : Install Server on your PC

Install XAMPP in your computer (XAMPP Download Link) you can also use WAMP Server or AppServer

Start Apache

Start MySQL

Step 2: Download WordPress and Install

WordPress Download Link

Extract WordPress into XAMPP/htdocs/website (Here create website folder into htdocs)

Step 3: Create Database for WordPress

Create Database in MySQL using PHPMyAdmin (http://localhost/phpmyadmin)

Step 4: Install WordPress

Open URL: http://localhost/website/ and follow steps to install it.

Now you will have two URLs

Website URL: http://localhost/website/


WordPress Admin URL: http://localhost/website/wp-admin/