Node.js

How To Use the Node.js REPL — step-by-step Javascript tutorial on Progressive Robot

How To Use the Node.js REPL

The Node.js Read-Eval-Print-Loop (REPL) is an interactive shell that processes Node.js expressions. The shell reads JavaScript code the user enters, evaluates the result of interpreting the line of code, prints the result to the user, and loops until the user signals to quit. The REPL is bundled with with every Node.js installation and allows you to quickly test and explore JavaScript code within the Node environment without having to store it in a file.

Read more
JSON Server (json-server) — step-by-step DevOps tutorial on Progressive Robot

JSON Server (json-server)

URL: https://www.progressiverobot.com/json-server/ Today we will look into a very handy tool json-server, which can give you a mock rest json server in a minute. In a regular enterprise application, you work with many teams and third party APIs. Imagine you have to call a third party [restful web service](/community/tutorials/restful-web-services-tutorial-java) that will get you JSON data […]

Read more
Cara Menyiapkan Proyek Node dengan Typescript — step-by-step Javascript tutorial on Progressive Robot

Cara Menyiapkan Proyek Node dengan Typescript

Menulis JavaScript di pihak server dapat menjadi hal yang menantang seiring berkembangnya basis kode. TypeScript adalah super-set bertipe (opsional) dari JavaScript yang dapat membantu membangun dan mengelola proyek JavaScript berskala besar. Ini dapat dianggap sebagai JavaScript dengan fitur tambahan, seperti tipe statis yang kuat, kompilasi, dan pemrograman berorientasi objek. Tutorial ini akan mendalami cara menggunakan kerangka kerja [Express](https://expressjs.com/) dengan TypeScript.

Read more
Using Event Emitters in Node.js — step-by-step Javascript tutorial on Progressive Robot

Using Event Emitters in Node.js

Event emitters are objects in Node.js that trigger an event by sending a message to signal that an action was completed. In this article, you will create an event listener for a TicketManager JavaScript class that allows a user to buy tickets. You will set up listeners for the buy event, which will trigger every time a ticket is bought. This process will also teach you how to manage erroneous events from the emitter and how to manage event subscribers.

Read more
CHAT