Posts for Node

Node.js is an open-source, cross-platform, JavaScript run-time environment that executes JavaScript code outside of a browser.

How to Model your data in MongoDB

MongoDB is a database that is also known as a NoSQL database. In another word, MongoDB is a schema-based database that is used to store data in documents. It is highly scalable and powerful. It stores data by following a field-value data structure that is most likely JSON but in MongoDB, it is known as […]

January 28, 2022 in Node & Tutorials

How to use CORS in ExpressJS

In this article, you are going to learn about how to use CORS in ExpressJS. ExpressJS is an open-source backend web application framework for NodeJS. It is very popular and provides a rich set of features for web development. CORS stands for cross-origin resource sharing. It is a package of NodeJS that provides browser security […]

January 21, 2022 in Code examples & Node

What is req.body in ExpressJS

In this article, you will learn about what is req.body in ExpressJS and, how to use it. ExpressJS is a very popular and open-source backend web application framework for NodeJS. In express, you will get req.body property. Basically, it is an object that will allow you to access data from the client-side in the form […]

January 21, 2022 in Code examples & Node

How to copy file in NodeJS

In this article, you are going to learn about how to copy a file in NodeJS. NodeJS is an open-source JavaScript runtime built on the Chrome V8 engine for executing JavaScript code on the server-side. It is very fast and highly scalable with extensive large community support. You may perform different actions with the help of […]

January 17, 2022 in Code examples & Node
Deven
Deven wrote

Create your first web server and Learn basic routing in Nodejs

NodeJS is an open-source JavaScript runtime built on the Chrome V8 engine for executing JavaScript code on the server-side. To make the web page more interactive the language, JavaScript was built. Writing JavaScript code outside of the browser was like daydreaming once a time. But now it is the reality that we can write JavaScript […]

January 14, 2022 in Node & Tutorials
Deven
Deven wrote

How to create and save schema array of strings in Mongoose

In this article, you will learn about how to create and save a schema array of strings in Mongoose. Mongoose is an ODM(Object Data Modeling) library for MongoDB and it lets you create a schema model and save documents in MongoDB. In the Mongoose schema model, you can create an array of strings. To create […]

January 13, 2022 in Code examples & Node
Deven
Deven wrote

Learn How to read and write file in NodeJS

NodeJS is very fast and highly scalable because of its event-driven, single-threaded and, non-blocking I/O model and you can do many interesting things by using it. Reading and writing files is one of them. It is a very essential functionality that is provided by NodeJS and the implementation of these things is very easy. You […]

December 28, 2021 in Node & Vue