일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- useState
- 기준
- Props
- typeScript
- node.js
- REACT
- 삶
- SSR
- API
- graphQL
- hardhat
- middleware
- Redux
- evm
- nextJS
- concept
- blockchain
- built in object
- bitcoin
- solidity
- CSS
- CLASS
- web
- HTML
- tailwindcss
- error
- express.js
- JavaScript
- Interface
- Ethereum
- Today
- Total
목록Backend/Express.js (5)
ReasonJun
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/APB2Q/btss91CBn26/lZY8RYUiUqSiAJnTeGOBw0/img.png)
The MVC pattern in Express.js is a software design pattern that separates an application into three interconnected parts: the model, the view, and the controller. The model is responsible for storing and retrieving data. The view is responsible for presenting the data to the user. The controller is responsible for handling user requests and updating the model. The MVC pattern is a popular choice..
Middleware in Express.js is a function that is executed before the request is routed to a specific controller or action. Middleware can be used to perform any number of tasks, such as: Logging the request and response. Validating the request data. Encrypting or decrypting the request data. Caching the request data. Generating a response. And much more. Middleware functions are chained together, ..
The res.end() and res.send() methods in Express.js are both used to send data back to the client. However, there are some key differences between the two methods. res.end() only sends the data that is passed to it. It does not set any headers or end the response. res.send() sends the data that is passed to it, and it also sets the Content-Type header to the appropriate value. It also ends the re..
The res.json() and res.send() methods in Express.js are both used to send data back to the client. However, there are some key differences between the two methods. res.json() sends the data in JSON format. This is the preferred format for sending data between applications, as it is both human-readable and machine-readable. res.send() can send data in any format. This includes JSON, HTML, images,..
Express.js is a minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications. It is designed to be easy to use and extend, and it is used by a wide variety of developers, from beginners to experienced professionals. Some of the features of Express.js include: Routing: Express.js provides a powerful routing system that allows you to..