0% found this document useful (0 votes)
3 views8 pages

NodeJS Tutorial Presentation

This document provides an overview of Node.js, including its asynchronous, event-driven runtime and non-blocking I/O model. It covers installation, file handling, database connectivity with MSSQL and MongoDB, CRUD operations, and exception handling. The tutorial emphasizes using JavaScript on the server and integrating Express.js for routing and error management.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views8 pages

NodeJS Tutorial Presentation

This document provides an overview of Node.js, including its asynchronous, event-driven runtime and non-blocking I/O model. It covers installation, file handling, database connectivity with MSSQL and MongoDB, CRUD operations, and exception handling. The tutorial emphasizes using JavaScript on the server and integrating Express.js for routing and error management.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Node.

js Tutorial - Overview

• Introduction to [Link]

• Asynchronous, Event-driven runtime

• Uses JavaScript on the server

• Non-blocking I/O model


[Link] Installation & Setup

• Install [Link] from official website

• Check version using: node -v

• Initialize project: npm init -y

• Install packages using npm


File Handling in [Link]

• Using built-in 'fs' module

• Read/Write files (sync & async)

• Create/Delete/Rename files

• Working with streams


Database Connectivity - MSSQL

• Install package: npm install mssql

• Create DB connection

• Execute queries

• Handle connection errors


Database Connectivity - MongoDB

• Install package: npm install mongodb or mongoose

• Connect to MongoDB Atlas/local

• Insert/Find/Update/Delete documents

• Using Mongoose Models


CRUD Operations

• Create - Insert Data

• Read - Fetch Data

• Update - Modify Data

• Delete - Remove Data

• Using [Link] for routes


Exception Handling

• Using try/catch blocks

• Handling async errors

• Custom error classes

• Global error handler in Express


Thank You!

• End of Presentation

• Questions?

You might also like