DEV Community

Deep Bag
Deep Bag

Posted on

1 1

NODEJS IMPORTANT THINGS!

1. What is Nodejs?
Node.js is an open-source and cross-platform runtime environment built on Chrome’s V8 JavaScript engine for executing JavaScript code outside of a browser.

2. What is Middleware?

  • Middleware framework for handling the different routing.
  • it works between the request and response cycle.
  • Middleware gets executed after the server receives the request and before the controller actions send the response.
    Image description
    _Advantages of using middleware: _

  • Middleware can process request objects multiple times before the server works for that request.

  • Middleware can be used to add logging and authentication functionality.

  • Middleware improves client-side rendering performance.

  • Middleware is used for setting some specific HTTP headers.

  • Middleware helps for Optimization and better performance.
    Image description

3. What is Node Package Manager?
Node Package Manager (NPM) is a command line tool that installs, updates or uninstalls Node.js packages in your application.
In another words:
NPM (Node Package Manager) is the default package manager for Node.js

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (1)

Collapse
 
andrewbaisden profile image
Andrew Baisden

Thanks for the intro.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs