i
Creating a Web Server
Handling Get Requests
Handling Post Requests
Event Handling
Event Loop
Routing
Streams
Debugging a Node application
Framework in Node.js
Express.js
Templating Engine
Invoking a REST Service
Pre-requisites for Node.js
Introduction to Node.js
What to use Node.js for?
Node.js - Environment Setup
REPL Terminal
For installing Node.js, you can visit https://nodejs.org/en/.
In the picture mentioned above, we have two versions
V12.13.1 LTS
Which is the latest stable version and the recommended one.
V13.3.0 Current
Which is the latest version.
We are using Windows operating system here. You can choose the Node.js version, depending on your operating system and configurations.
Once downloaded, use
node –v
to your command line to check the installed node version.
Installation in Linux and MAC?
Based on your OS architecture, download and extract the archive node-v12.13.1-osname.tar.gz into /tmp, and then finally move extracted files into /usr/local/nodejs directory.
$ cd /tmp
$ wget http://nodejs.org/dist/v12.13.1-linux-x64.tar.gz
$ tar xvfz node-v12.13.1-linux-x64.tar.gz
$ mkdir -p /usr/local/nodejs
$ mv node-v12.13.1-linux-x64/* /usr/local/nodejs
Make sure to add /usr/local/nodejs/bin to the PATH environment variable.
Using
$ export Path==$ PATH:/usr/local/nodejs/bin
Don't miss out!