What is Nodejs? Difference between Nodejs and javaScript
Node js is a Javascript runtime and open-source server environment. Node js run a web application outside the client browser. Node js non-blocking means asynchronous.
Javascript is a programming language other side nodejs is a javascript runtime. Javascript is mostly used for client-side and nodejs is used to server-side of a web application. Node.js is a very powerful JavaScript-based platform built on Google Chrome's JavaScript V8 Engine. It is used to develop I/O intensive web applications like video streaming sites, single-page applications, and other web applications. Node.js is open source, completely free, and used by thousands of developers around the world.
**
CRUD OPERATION**
C for Create
R For Read
D for Delete
U for Update
This CRUD operation is used to read , write, update and delete data from database from UI. CRUD stands for create, read, update and delete. These are the four basic functions of persistent storage. Also, each letter in the acronym can refer to all functions executed in relational database applications and mapped to a standard HTTP method, SQL statement or DDS operation.
Json Web Token(JWT)
JWT token used for secure API .
JWT token has three parts. they are below
header
payload
signature
Header
Header consist of two parts. the type of the token, which is JWT, and the signing algorithm being used, such as HMAC SHA256 or RSA.
Payload
Second part of the token is payload. It contains claims.
There are three types of claims: registered, public, and private claims.
Signature:
To create the signature part you have to take the encoded header, the encoded payload, a secret, the algorithm specified in the header, and sign that.
Benefits of using Node and Mongo with React project
Because Node, MongoDB, React has close relation with Javascript. MongoDB is designed to store JSON data natively, JSON is a javascript object notation that represents data on javascript object syntax. React is a javascript library and nodejs is a javascript run time. For this reason, we use NODE MONGO with REACT.
What are the differences between SQL and NoSQL database
SQL is a relational database and NoSQL is a non-relational database.
SQL databases are vertically scalable and NoSQL are horizontally scalable.
SQL database is table-based other hand NoSQL is document-based.
Top comments (0)