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.
- Comparison of JSON vs XML
- JSON syntax and structure
- Number, Boolean, String
- JSON Methods:
JSON.parse()
,JSON.stringify()
- JSON Objects and Arrays
- Handling Dates in JSON
- 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
- File System (
fs
) - OS Module (
os
) - Path Module (
path
)
- Creating an HTTP server
- Rendering responses
- Reading and serving HTML files
- Basic routing
- Returning JSON responses
- Understanding and working with URL and QueryString
- Creating and exporting custom Node.js modules
- Using third-party packages like
chalk
,validator
- Module Wrapper Function in Node.js
- Processing JSON files
- Handling events with
EventEmitter
- Install Node.js
git clone https://github.com/romilmonpara/node-js_json_sem-4_t1.git
- Run Node.js scripts using:
node filename.js
- Use
nodemon
for automatic restarts:nodemon filename.js