Skip to content

Latest commit

 

History

History
92 lines (60 loc) · 1.84 KB

File metadata and controls

92 lines (60 loc) · 1.84 KB

JSON & Node.js Learning Repository

Overview

This repository contains learning materials and examples related to JSON (JavaScript Object Notation) and Node.js. It covers fundamental concepts, practical implementations, and advanced topics to help you understand how to work with JSON and build applications using Node.js.


JSON

1.1 JSON Introduction

  • Comparison of JSON vs XML
  • JSON syntax and structure

1.2 JSON Datatypes

  • Number, Boolean, String
  • JSON Methods: JSON.parse(), JSON.stringify()
  • JSON Objects and Arrays
  • Handling Dates in JSON

Node.js - Part 1

2.1 Introduction, Setup, REPL, Callbacks

  • Introduction to Node.js
  • Setting up Node.js environment
  • Using REPL (Read-Eval-Print Loop)
  • Callbacks using JavaScript functions like setTimeout(), setInterval()
  • NPM Global Modules: Installing and using nodemon

2.2 Core Modules

  • File System (fs)
  • OS Module (os)
  • Path Module (path)

2.3 HTTP Module & Server Handling

  • Creating an HTTP server
  • Rendering responses
  • Reading and serving HTML files
  • Basic routing
  • Returning JSON responses

Node.js - Part 2

3.1 URL, QueryString, and Custom Modules

  • Understanding and working with URL and QueryString
  • Creating and exporting custom Node.js modules

3.2 NPM Packages, Events, and JSON Processing

  • Using third-party packages like chalk, validator
  • Module Wrapper Function in Node.js
  • Processing JSON files
  • Handling events with EventEmitter

Installation

Prerequisites

Clone this Repository :

git clone https://github.com/romilmonpara/node-js_json_sem-4_t1.git

Usage

  • Run Node.js scripts using:
    node filename.js
  • Use nodemon for automatic restarts:
    nodemon filename.js

Created by Romil Monpara