GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Amanchouhan192/Node_Tutorial: this is the tutorial of node js . In Which you can learn the nodejs and apply on the projects..Happy Coding

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
README.md
README.md
 
 
gitapp.js
gitapp.js
 
 

Repository files navigation

Node_Tutorial

this is the tutorial of node js . In Which you can learn the nodejs and apply on the projects..Happy Coding

About NodeJS

  • Node.js is an open source server framework
  • Node.js is free
  • Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
  • Node.js uses JavaScript on the server

How to Install Node.js with NPM on Windows

Follow the step to Install the Nodejs on Windows..

  • Open the browser And Type Nodejs Downlod
  • And download current version of the Nodejs.
  • Now check the nodejs is install or not open CMD and type node -v and it shows the version current version thats mean the nodejs is install perfectly on your machine amanchouhanwork
  • Now check the Node Package Manger(npm) is install or not Repeat above steps and open cmd type npm -v.

Why we use Nodejs?

Node.js is a platform built on Chrome's JavaScript runtime for easily building fast and scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.

How to create Nodejs Server?

  • create the file has .js extension.
  • type the below code nodejs server code
const http = require('http');

const hostname = '127.0.0.1';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
  res.end('Hello World\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});
  • for start the server type the node application name or file name Resim hosting: UploadEdit.com
  • now open the browser and type in the url your loacl host address hostname = '127.0.0.1' software using visual studio code(vscode editor)
  • And you get your first Hello world web app
  • when you type wrong method in the server code the you dont get any response on the webpage.
const http = require('http');

const hostname = '127.0.0.1';
const port = 3000;

const server = http.createServer((req, res) => {
  res.statusCode = 200;
  res.setHeader('Content-Type', 'text/plain');
--->  res.endd('Hello World\n');
});

server.listen(port, hostname, () => {
  console.log(`Server running at http://${hostname}:${port}/`);
});

Different Functionality of nodejs

  • Reading and Writing Files using fs module
  • Creating and Removing Directories using fs module
  • Nodejs events and eventemitter
  • Stream Redable and writtable

About

this is the tutorial of node js . In Which you can learn the nodejs and apply on the projects..Happy Coding

Topics

cmdjavascriptnode-modulenode-tutorialnodejsserver

Resources

Readme
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.