- A HTTP server listens for HTTP requests and sends HTTP responses.
- Reference:
- Store a list of dependencies for the project
- Give the project a name
- Store metadata about the project
- All of the above ☑️
- None of the above
- Reference:
- See the section "Properties of a package.json file" here.
- Node: What is the file
package.json?
- Node web framework for handling requests
- Provides mechanisms to:
- Write handlers for requests with different HTTP verbs at different URL paths (routes)
- Set common web application settings like the port to use for connecting
- Add additional request processing “middleware” at any point within the request handling pipeline
- References:
- An example of it could be app.use ☑️
- It happens between the request and response ☑️
- Only one middleware function can be called per request-response cycle
- An example of it could be app.get
- It sometimes runs after the response is sent
- A function that receives the request and response objects of an HTTP request/response cycle (i.e.
(req, res, next) => {...}).
- An object that represents the eventual completion of an asynchronous operation and its resulting value
- Reference: