1. N O D E . J S
CEIT133 PRESENTATION
MUHAMMED BEHLÜL UĞUR 2567659
MUHAMMED SİNAN 2508620
2. W H A T I S N O D E . J S ?
• Node.js is an open-source, cross-platform, back-end JavaScript runtime
environment that runs on the V8 engine and executes JavaScript code
outside a web browser.
• Node.js is free
• Node.js runs on various platforms (Windows, Linux, Unix, Mac OS X,
etc.)
3. W H Y N O D E . J S ?
• Here is how Node.js handles a file request:
• Sends the task to the computer's file system.
• Ready to handle the next request.
• When the file system has opened and read the file, the server returns the content to the client.
• Node.js eliminates the waiting, and simply continues with the next request.
• Node.js runs single-threaded, non-blocking, asynchronous programming, which is very
memory efficient.
Node.js uses asynchronous programming!
4. W H A T C A N N O D E . J S D O ?
• Node.js can generate dynamic page content
• Node.js can create, open, read, write, delete, and close files on the
server
• Node.js can collect form data
• Node.js can add, delete, modify data in your database
5. W H A T I S A N O D E . J S F I L E ?
• Node.js files contain tasks that will be executed on certain events
• A typical event is someone trying to access a port on the server
• Node.js files must be initiated on the server before having any effect
• Node.js files have extension ".js"
6. G E T T I N G S T A R T E D W I T H N O D E . J S
• How to download Node.js
• Go to https://nodejs.org/en/download/
• Choose your OS and pick a version (LTS is recommended)
7. N O D E . J S H T T P M O D U L E
• The Built-in HTTP Module
• Node.js has a built-in module called HTTP, which allows Node.js to
transfer data over the Hyper Text Transfer Protocol (HTTP).
• To include the HTTP module, use the require() method:
8. N O D E . J S N P M
• NPM is a package manager for Node.js packages, or modules if you like.
• The NPM program is installed on your computer when you install Node.js
There are much more
modules in npm!
9. N O D E . J S F I L E S Y S T E M M O D U L E
• Common use for the File System module:
• Read files
• Create files
• Update files
• Delete files
• Rename files
10. R E F E R E N C E S
• W3schools. (n.d.). Node.js Tutorial. W3. Retrieved June 13, 2022, from
https://www.w3schools.com/nodejs/default.asp
• N. (n.d.). GitHub - nodejs/node: Node.js JavaScript runtime. GitHub. Retrieved June 13, 2022,
from https://github.com/nodejs/node