Node.js
Node.js upload file
Formidable module has been used to upload file in Node.js Terminal command to install Formidable module npm install formidable Now create project folder in use below files index.html app.js Terminal command to start server node app.js Screenshot of file uploading using node.js with formidable module
Node.js to Built chat App using Socket.io
Here we going to built real time chat App using Node.js with socket.io and nodemon dependency Dependencies Socket.IO Enables real-time bidirectional event-based communication. Socket abstract WebSocket connections. It uses WebSocket for transportation and then fallback to long polling when Websockets fail to establish a connection Nodemon A tool that helps develop Node.js applications by automatically … Read more
Importing npm Modules in Node.js
When we install Node.js, we also get npm. npm is a package manager that allows you to install and use third-party npm libraries in your code. This opens up a world of possibilities, as there are npm packages for everything from email sending to file uploading Initializing npm Our Node.js application needs to initialize npm … Read more
Node.js Core Modules
Node.js, being a server-side JavaScript runtime, comes with a set of core modules that provide essential functionality for building server-side applications. These core modules are built-in and can be used without the need for external installations. Here are some of the key Node.js core modules: 1. fs (File System): 2. http: 3. path: 4. events: … Read more
Streaming data in Node.js
In Node.js, streaming is a powerful and efficient way to handle data, especially when dealing with large amounts of data or real-time scenarios. Streaming allows you to process data in chunks, rather than loading the entire dataset into memory at once. Here are some key concepts and components related to streaming data in Node.js: 1. … Read more
What is DIRTy applications in Node.js?
There actually is an acronym for the types of applications Node is designed for DIRT. It stands for data-intensive real-time applications. Because Node itself is very lightweight on I/O, it’s good at shuffling or proxying data from one pipe to another. It allows a server to hold a number of connections open while handling many … Read more
What is Node.js?
Node.js is an open-source, server-side JavaScript runtime environment that allows developers to run JavaScript code on the server. It was initially created by Ryan Dahl in 2009 and has since gained widespread popularity for building scalable network applications. Node.js uses an event-driven, non-blocking I/O model, making it well-suited for building real-time applications and handling a … Read more