PHP, JS, CSS, Python, and Machine Learning Technology
0
Absolute-super-basic-Promise-creation
0

And note some fundamentals of Promise - When you create a new Promise, you're really just creating a plain old JavaScript object. This object can invoke two ...

0
Promise object
0

Promise object is used for handling asynchronous computations which has some important guarantees that are difficult to handle with the callback method (the ...

0
How is Node.js different different from Javascript?
0

Ans: Node.js uses a library called libuv, to bring an asynchronous event driven model to Javscript. It piggy backs on Chrome's Javascript Engine called V8 to ...

0
LocalStorage and SessionStorage 
0

localStorage and sessionStorage both extend Storage. There is no difference between them except for the intended "non-persistence" of sessionStorage. That is, ...

0
Cookie-Based Authentication
0

Cookie-based authentication has been the default, tried-and-true method for handling user authentication for a long time. Cookie-based authentication ...

0
Pipe-in-node
0

The pipe() function reads data from a readable stream as it becomes available, and writes it to a destination writable stream. It does all "reasonable" things ...

0
Conceptual Workflow
0

If you’ll recall, Express works with a request-response cycle in which callback functions are tied to specific routes and have access to request and response ...

0
What is a session?
0

The very basic steps of express-session and cookie-based session management The first time a browser makes a request to our server, express session generates ...

0
Passport-authentication-middleware-BASIC-FLOW.
0

Passport is a framework, and a Node.js middleware, that is extremely flexible and modular. It allows you to work with the main authentication strategies: Basic ...

0
Package.json file
0

Explanation so, basically it removes all the create and start server code from your app.js and let you focus only on the application logic part. Note: If you ...

0
Node-debugging
0

Since version 6.3, Node.js provides a built-in DevTools-based debugger which mostly deprecates Node Inspector, see e.g. this blog post to get started. The ...

0
localForage is a fast and simple storage library for JavaScript.
0

localForage improves the offline experience of your web app by using asynchronous storage (IndexedDB or WebSQL) with a simple, localStorage-like API. Official ...

0
jwt-where-to-save-localStorage-vs-sessionStorage-vs-cookie
0

First note, in a typical node app, the token is generated with jsonwebtoken npm package using jwt.sign() function in the auth.js backend route or controller. ...

0
JSON Web Token(JWT)
0

A JSON Web Token(JWT), defines an explicit, compact, and self-containing secured protocol for transmitting restricted informations. This is often used to send ...

0
Gracefully-shut-down-node-app
0

We can speak about the graceful shutdown of our application, when all of the resources it used and all of the traffic and/or data processing what it handled ...

0
What’s a stub? Name a use case.
0

Ans: First, a classic use of callback methods. Second, using Promises. Finally, in a more sophisticated way, we can use reactive extensions (RxJS) to define ...

0
Why express js is required when I have node.js
0

So you don't have to repeat same code over and over again. Node.js is a low-level I/O mechanism which has an HTTP module. If you just use an HTTP module, a lot ...

0
Error-handling-in-node-Theory
0

There are four main ways to deliver an error in Node.js: throw the error (making it an exception). pass the error to a callback, a function provided ...

0
Why use ‘cors’ package, what does it do
0

A> https://medium.com/@alexishevia/using-cors-in-express-cac7e29b005b Cross-origin resource sharing (CORS) allows AJAX requests to skip the Same-origin ...

0
Cookie parser parses
0

The cookie parser parses cookies and puts the cookie information on req object in the middleware. It will also decrypt signed cookies provided you know the ...

RxHarun
Logo