forked from faisal2410/terminology
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbackend_terminology.js
More file actions
51 lines (25 loc) · 5.13 KB
/
Copy pathbackend_terminology.js
File metadata and controls
51 lines (25 loc) · 5.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
Here are some backend terminologies related to the MERN stack:
API: Application Programming Interface. It is a set of protocols and standards for building software applications and defines how different software components should interact with each other.
Server: The server is responsible for handling incoming requests from clients and returning responses. In the MERN stack, the server is built using Express and runs on Node.js.
Middleware: Middleware functions are functions that have access to the request and response objects in the server's request-response cycle. They can perform tasks such as parsing incoming data, authenticating requests, and handling errors.
Routing: Routing refers to the process of determining how an application responds to a client request for a particular endpoint, which is a specific URI (or path) and a specific HTTP request method (GET, POST, PUT, DELETE, etc.).
Database: In the MERN stack, MongoDB is the preferred database. It is a NoSQL document-oriented database that stores data in flexible, JSON-like documents.
ORM: Object-Relational Mapping is a technique that allows developers to work with databases using object-oriented programming concepts. In the MERN stack, Mongoose is a popular ORM for MongoDB.
Authentication: Authentication is the process of verifying the identity of a user. In the MERN stack, authentication can be implemented using various strategies, such as JSON Web Tokens (JWTs) or sessions.
Deployment: Deployment is the process of making a web application available to users. In the MERN stack, deployment can be done using various cloud platforms, such as AWS, Google Cloud, or Heroku.
Models: Models define the structure and behavior of data in the application. In the MERN stack, Mongoose provides a schema-based solution to model application data and interact with the database.
Controllers: Controllers are responsible for handling user requests and interacting with the models to perform actions on the data. In the MERN stack, controllers are typically implemented using functions that are called by the server's routing system.
Views: Views are the user interface components of an application that are responsible for presenting data to users. In the MERN stack, views are built using React, a JavaScript library for building user interfaces.
RESTful API: Representational State Transfer (REST) is a design pattern for creating web services that follow a set of principles for building scalable and maintainable APIs. In the MERN stack, the server can be designed to expose RESTful APIs that follow these principles.
WebSockets: WebSockets provide a bi-directional, real-time communication channel between a client and a server. In the MERN stack, WebSockets can be implemented using libraries such as Socket.IO to enable real-time interactions between the server and the client.
Caching: Caching refers to the process of storing frequently accessed data in memory to reduce the time required to retrieve data from the database. In the MERN stack, caching can be implemented using in-memory solutions such as Redis or Memcached.
Load Balancing: Load balancing refers to the process of distributing incoming requests across multiple servers to optimize resource utilization and improve application performance. In the MERN stack, load balancing can be implemented using solutions such as NGINX or Amazon Elastic Load Balancer (ELB).
CRUD Operations: CRUD stands for Create, Read, Update, and Delete. It refers to the basic operations that can be performed on data in a database. In the MERN stack, these operations are typically performed using HTTP methods such as GET, POST, PUT, and DELETE.
JSON: JSON stands for JavaScript Object Notation. It is a lightweight data interchange format that is easy for humans to read and write and easy for machines to parse and generate. In the MERN stack, JSON is commonly used for exchanging data between the client and server.
Authentication Middleware: Authentication middleware is a type of middleware that is responsible for checking whether a user is authenticated before allowing them to access certain routes or resources. In the MERN stack, authentication middleware can be implemented using libraries such as Passport.
Error Handling Middleware: Error handling middleware is a type of middleware that is responsible for catching and handling errors that occur during the request-response cycle. In the MERN stack, error handling middleware can be implemented using functions that are called when an error is encountered.
Sessions: Sessions are a way to store user data on the server between requests. In the MERN stack, sessions can be implemented using middleware such as express-session.
Cookies: Cookies are small pieces of data that are stored on the client's browser and are used to maintain state between requests. In the MERN stack, cookies can be used for various purposes, such as storing user preferences or authentication tokens.
Pagination: Pagination is the process of dividing a large set of data into smaller, more manageable pieces to improve performance and user experience. In the MERN stack, pagination can be implemented using libraries such as mongoose-paginate or react-paginate.
*/