Backend
Backend
Node.js:
Node.js is java Script run me environment
It is used for server side programming.
Node.js is not a language, library, or framework.
Express.js:
Express is a node.js web applica on framework that help us to make web
applica on.
It is used for server side programming.
MongoDB:
MongoDB is a NoSQL, document-oriented database known for
its flexibility and scalability. Instead of storing data in tradi onal
table structures as in rela onal databases, MongoDB stores
data in JSON-like documents.
Mongoose :
Mongoose is a library for MongoDB that is used to connect node.js
and MongoDB it also provides some func ons like
FindbyId
Findbyidand Update
Findbyidandcreate
Delete many
Delete one
Find one
Find one and update
Find one and delete
1. What is npm?
Npm (Node Package Manager) is the standard package manager for
Node.js.
Npm is a tool that allows developers to Publish open-source projects,
Install packages, Manage package dependencies.
Node_module:
The node_module folder contains every installed dependency for
our project.
package-lock.json
It records the exact version of every installed dependency,
including its sub-dependencies and their versions.
package.json
package.json is a file used in Node.js projects to manage the
project’s metadata, dependencies, and scripts.
3. Libraries Vs Frameworks
Both libraries and frameworks are pre-wri en tools that help developers
build complex so ware. However, the key difference is:
A library focuses on specific tasks or func onali es so you use it
for a par cular job. For example React.
while a framework tries to provide everything required to develop
a complete applica on. For example Express.