Posts

Showing posts with the label Backend Development

Node.js Setup – Complete Beginner Guide (From Installation to First App)

Image
Node.js Setup – Complete Beginner Guide (From Installation to First App) Node.js is a powerful runtime that allows you to run JavaScript on the server side . It is widely used for backend development , REST APIs , microservices , real-time applications , and tools like Angular, React, Camunda workers, and automation scripts . This guide explains: ✔ What Node.js is ✔ How to install Node.js (Windows / macOS / Linux) ✔ How to verify installation ✔ Your first Node.js program ✔ npm basics ✔ Project structure and best practices ⭐ 1. What is Node.js? Node.js is: A JavaScript runtime built on Chrome’s V8 engine Asynchronous and event-driven Lightweight and highly scalable Common use cases: REST APIs Backend for frontend (BFF) Microservices Real-time apps (chat, notifications) Camunda 8 Job Workers CLI tools ⭐ 2. Prerequisites Before starting, you need: A computer (Windows / macOS / Linux) Internet connection Basic knowledge of JavaScript A code editor (VS Code recommended) ⭐ 3. Install Node...

REST API Tutorial

  🚀 Introduction REST APIs allow different applications to communicate with each other. Each API request uses a specific HTTP Method based on the action: Method Action Meaning GET Read Fetch data from server POST Create Add new data PUT Update Replace existing data PATCH Modify Modify part of existing data DELETE Remove Delete data We will use live working APIs from: 👉 https://restful-api.dev/ 📥 1. GET — Retrieve / Read Data ➤ Example 1: Fetch multiple items using IDs đź”— API URL: https://api.restful-api.dev/objects? id =4& id =6& id =10 🟦 cURL Example (GET) curl --location 'https://api.restful-api.dev/objects?id=4&id=6&id=10' \ --data '' 📌 Example Response: [      {          "id" :   "4" ,          "name" :   "Apple iPhone 11, 64GB" ,          "data" :   {     ...