Installing Node.js and Express on Windows
[Pages:21]CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
This set of slides illlustrate the steps for installing Node.js and Express on Windows. Please don't print it in order to save paper!
CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
Matt YIU, Man Tung (mtyiu@cse) SHB 118
Office Hour: Tuesday, 3-5 pm
2015.02.12
Prepared by Matt YIU, Man Tung
2015.02.12
1
CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
Installing Node.js on Windows
Next, next, next, accept, install... FINISH
Prepared by Matt YIU, Man Tung
2015.02.12
2
CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
Step 1: Download the Windows installer
? Download the latest version of Node.js from
? Most of you should be using 64-bit machine already
Prepared by Matt YIU, Man Tung
2015.02.12
3
CSCI 4140 ? Tutorial 5
Step 2: Install Node.js
? Execute the installer...Next, next, ...
Installing Node.js and Express on Windows
Prepared by Matt YIU, Man Tung
2015.02.12
4
CSCI 4140 ? Tutorial 5
Step 2: Install Node.js
? Execute the installer...Next, next, ...
Installing Node.js and Express on Windows
We will need all of these features.
Prepared by Matt YIU, Man Tung
2015.02.12
5
CSCI 4140 ? Tutorial 5
Step 2: Install Node.js
? Finish!
Installing Node.js and Express on Windows
Prepared by Matt YIU, Man Tung
2015.02.12
6
CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
Step 3: Test your Node.js installation
? Open your command prompt:
? Windows Key + R Type "cmd"
? Enter "node -v" to display the version number of your Node.js installation
? Enter "node -h" to display the help message of Node.js
Prepared by Matt YIU, Man Tung
2015.02.12
7
CSCI 4140 ? Tutorial 5
Installing Node.js and Express on Windows
Step 4: "Hello World"!
? Time to write our first Node.js program!
var http = require( 'http' ); http.createServer( function( request, response ) {
response.writeHead( 200, { 'Content-Type' : 'text/plain' } ); response.end( 'Hello World!\n' ); } ).listen( 4140, '127.0.0.1' );
console.log( 'Server running at ' );
hello.js
? Save the program anywhere you like
? In this example, the file is saved under "D:\csci4140"
Prepared by Matt YIU, Man Tung
2015.02.12
8
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- brand guide
- install instructions for ubuntu windows macos sunos
- nnooddee jjss iinntteerrvviieeww qquueessttiioonnss
- application developer s guide marklogic
- beginner s essential javascript cheat sheet websitesetup
- extend or add functions to module tutorial kart
- install on windows tutorial kart
- nnooddee jjss qquuiicckk gguuiiddee
- building a windows c c addon
- tello scratch readme 1 visit https download and