You should be able to:
- Describe the role of pg in our stack
- Define REST and its advantages
- Create and mount Express Routers
- Explain the role of body parsing middleware
- Client: It is requesting something from the PostgreSQL server ☑️
- Server
- Neither
- A node module for handling routes
- Express
- A type of built-in express middleware for designing routers
- Express Router
- An architectural style for designing web services ☑️
- Helps answer the question on how to organize routes and how to map functionality to URIs and Methods:
- Paths represent "nouns" or resources
- HTTP “verbs” map to data operations
- Helps answer the question on how to organize routes and how to map functionality to URIs and Methods:
- A algorithm for parsing the text of an HTTP request
- Body Parser
- GET
- POST
- PUT
- DELETE
It's a piece of middleware in which it extracts data from a form and makes it available to req.body
. This is needed because data on the internet is not necessarily sent in wholesale but in packets.