Thursday, April 9, 2015
So according to Node.js's official website http://www.nodejs.org, NodeJs is
“a platform built on Chrome’s JavaScript runtime for easily building fast, 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.”
So what does that mean in English? Well it basically means that Node.js enables developers to use JavaScript like it's a server. Allowing you to do JavaScript server-side like development without the backend servers. Under the hood of Node.js is the virtual machine call V8. If you need something lightweight Node.js should be able to fit the bill especially on the client side.
Here are the steps to step up Node:
1. Go to the website https://nodejs.org/
2. Click on the "Downloads" tab
3. Download the install file for the your system
4. Double click on the .msi file you've just downloaded
5. Click "Next" on the welcome screen
6. Check "I accept the terms in the License Agreement, then click "Next"
7. Accept default and, click "Next"
8. Accept the default destination, and click "Next"
9. Accept the default on the "Custom Setup" screen, then click "Next"
10. Click the "Install" button on the "Ready to install Node.js"
11. The installation will start automatically.
15. Open the Microsoft Command Line Prompt console and type in the following code, you have to navigate to where the "HelloWorld.js" file resides first before you run the command
Node HelloWorld.js
16. You might be wondering what happened to the text you wrote in the HelloWorld.js file "Hello World http", well that's the magic of Node.js. If you type the URL http://127.0.0.1:1337 into your browser you will see that the text is displayed on the browser. Node.js is basically hosting your JavaScript listening on port 1337. Very cool indeed.
“a platform built on Chrome’s JavaScript runtime for easily building fast, 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.”
So what does that mean in English? Well it basically means that Node.js enables developers to use JavaScript like it's a server. Allowing you to do JavaScript server-side like development without the backend servers. Under the hood of Node.js is the virtual machine call V8. If you need something lightweight Node.js should be able to fit the bill especially on the client side.
Here are the steps to step up Node:
1. Go to the website https://nodejs.org/
2. Click on the "Downloads" tab
3. Download the install file for the your system
4. Double click on the .msi file you've just downloaded
5. Click "Next" on the welcome screen
6. Check "I accept the terms in the License Agreement, then click "Next"
7. Accept default and, click "Next"
8. Accept the default destination, and click "Next"
9. Accept the default on the "Custom Setup" screen, then click "Next"
10. Click the "Install" button on the "Ready to install Node.js"
11. The installation will start automatically.
12. Click "Finish"
13. Now that Node.js is installed, we have to test it to make sure that it works.
14. Create a file call "HelloWorld.js" with the following code
var http = require('http'); http.createServer(function (req, res) { res.writeHead(200, {'Content-Type': 'text/plain'}); res.end('Hello World http\n'); }).listen(1337, "127.0.0.1"); console.log('Server running at http://127.0.0.1:1337/');
15. Open the Microsoft Command Line Prompt console and type in the following code, you have to navigate to where the "HelloWorld.js" file resides first before you run the command
Node HelloWorld.js
16. You might be wondering what happened to the text you wrote in the HelloWorld.js file "Hello World http", well that's the magic of Node.js. If you type the URL http://127.0.0.1:1337 into your browser you will see that the text is displayed on the browser. Node.js is basically hosting your JavaScript listening on port 1337. Very cool indeed.
Subscribe to:
Post Comments (Atom)
Search This Blog
Tags
Web Development
Linux
Javascript
DATA
CentOS
ASPNET
SQL Server
Cloud Computing
ASP.NET Core
ASP.NET MVC
SQL
Virtualization
AWS
Database
ADO.NET
AngularJS
C#
CSS
EC2
Iaas
System Administrator
Azure
Computer Programming
JQuery
Coding
ASP.NET MVC 5
Entity Framework Core
Web Design
Infrastructure
Networking
Visual Studio
Errors
T-SQL
Ubuntu
Stored Procedures
ACME Bank
Bootstrap
Computer Networking
Entity Framework
Load Balancer
MongoDB
NoSQL
Node.js
Oracle
VirtualBox
Container
Docker
Fedora
Java
Source Control
git
ExpressJS
MySQL
NuGet
Blogger
Blogging
Bower.js
Data Science
JSON
JavaEE
Web Api
DBMS
DevOps
HTML5
MVC
SPA
Storage
github
AJAX
Big Data
Design Pattern
Eclipse IDE
Elastic IP
GIMP
Graphics Design
Heroku
Linux Mint
Postman
R
SSL
Security
Visual Studio Code
ASP.NET MVC 4
CLI
Linux Commands
Powershell
Python
Server
Software Development
Subnets
Telerik
VPC
Windows Server 2016
angular-seed
font-awesome
log4net
servlets
tomcat
AWS CloudWatch
Active Directory
Angular
Blockchain
Collections
Compatibility
Cryptocurrency
DIgital Life
DNS
Downloads
Google Blogger
Google Chrome
Google Fonts
Hadoop
IAM
KnockoutJS
LINQ
Linux Performance
Logging
Mobile-First
Open Source
Prototype
R Programming
Responsive
Route 53
S3
SELinux
Software
Unix
View
Web Forms
WildFly
XML
cshtml
githu
Below are the 15 best Minecraft mods everyone should try. Optifine. No matter if it's your first time playing Minecraft or you've been playing it for a long time now. 9minecraft mods
ReplyDeleteEpson is a famous brand producing different printers from Inkjet to LaserJet with various shapes, sizes, designs, and so forth It is reasonable for home and office also to finish individual and expert printing errands. Epson printer is been the best option of gigantic individuals all around the the globe because of its extraordinary highlights and very much worked during the printing process. Fix epson printer not printing issue
ReplyDeletehttps://assamjobclub.com/
ReplyDelete
ReplyDeleteThanks for posting such an impressive blog post.
How to fix Brother printer in error state windows 10
How to fix Brother printer in error state windows 10
How to fix Brother printer in error state windows 10
How to fix Brother printer in error state windows 10
How to fix Brother printer in error state windows 10
My Brother printer says it is in error state
My Brother printer says it is in error state
My Brother printer says it is in error state
My Brother printer says it is in error state
My Brother printer says it is in error state
Mua vé máy bay tại Aivivu, tham khảo
ReplyDeletekinh nghiệm mua vé máy bay đi Mỹ giá rẻ
vé máy bay từ mỹ về việt nam giá rẻ
mua vé máy bay từ đức về việt nam
chuyến bay từ nga về việt nam
giá thuê máy bay từ anh về việt nam
các chuyến bay từ châu âu về việt nam
Chuyen bay cho chuyen gia nuoc ngoai
Всем привет, хотел бы спросить не много не по теме, кто нибудь смотрел фильм Солнечное побережье?Стоит ли его смотреть? Слышала он вышел в 2024 году и не плохой фильм.
ReplyDeleteThannks great blog post
ReplyDelete