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 ☑️
- Server
- Neither
Remember, the client role is assumed by "who" initiates the request. In this case, our Node application is requesting data from our Postgres database. Our Postgres database, completes this communication by sending a response.
- 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
- Express parsing middleware (Body Parser)
- GET ☑️
- SET
- POST ☑️
- PUT ☑️
- UPDATE
- REMOVE
- 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.