Full-stack Developer
Node JS for
REST API Part 1
Restricted - For Student Only
Today’s Tutor
Zainal Hasan - Senior Backend Engineer – Horego
Experience :
● Senior Backend Engineer at Horego (Jun 2023-Now)
● Private Mentor with predicate “Duta Besar” at
Superprof Indonesia (2020-Now)
● Backend Engineer at Printerous (Nov 2021-May 2023)
● Full Stack Developer at MatchKerja (Jan 2021-Aug
2021)
● Founder & Web Developer at Gazeboin (Nov 2017-Oct
2020)
Class 01 Introduction to Node JS
Agenda 02 Tools Installation
The Details
Introduction to
Node JS
Node.js is a platform that allows you to run
What is JavaScript on the server side. This means
you can create web applications that run
Node JS? on your server using JavaScript, which
previously could only run in the browser.
Selanjutnya dalam ruang kerja teknologi
JavaScript on the server
Non Blocking I/O
Why choose Based on event-driven architecture
Node JS?
Package manager included
Strong ecosystem
>
Well Known
Companies
Using Node JS
Tools that
need to be
installed
Tools Installation
Download prebuilt Node JS version 18.x
Download & open downloaded file
Install https://nodejs.org/en/download/prebuilt-installer
Node JS Ensure Node JS & NPM is installed
Run this command in your terminal:
node -v
npm -v
Selanjutnya dalam ruang kerja teknologi
Download Postman
Download & open downloaded file
Install Windows: https://dl.pstmn.io/download/latest/win64
Linux: https://dl.pstmn.io/download/latest/linux_64
Postman Mac Intel: https://dl.pstmn.io/download/latest/osx_64
Mac M1: https://dl.pstmn.io/download/latest/osx_arm64
Other OS: https://www.postman.com/downloads/
Selanjutnya dalam ruang kerja teknologi
Create new folder and open in VS Code
Run this command in your terminal:
mkdir myapp
cd myapp
code .
How to use Create new file with name index.js
Copy this code to that file:
Node JS? console.log("Hello World!");
console.log("This is path to the node binary: " + process.argv[0]);
console.log("This is the path to the script: " + process.argv[1]);
console.log("And my name is " + process.argv[2]);
Run the file
Run this command in your terminal:
node index.js
node index.js Zainal
Selanjutnya dalam ruang kerja teknologi