Read 07 ~ Express
By Abdallah obaid
NAME | URL |
---|---|
Home | Home. |
Prep | Prep: Engineering Topics. |
Read 01 | Node Ecosystem, TDD, CI/CD. |
Read 02 | Classes, Inheritance, Functional. |
Read 03 | Data Modeling & NoSQL Databases. |
Read 04 | Advanced Mongo/Mongoose. |
Read 05 | Linked Lists. |
Read 06 | HTTP and REST. |
Read 07 | Express. |
Read 08 | Express Routing & Connected API. |
Read 09 | API Server. |
Read 10 | Stacks and Queues. |
Read 11 | Authentication. |
Read 12 | OAuth. |
Read 13 | Bearer Authorization. |
Read 14 | Access Control (ACL). |
Read 15 | Trees. |
Read 16 | Event Driven Applications. |
Express:-
## Vanilla JavaScript:
- VanillaJS is a name to refer to using plain JavaScript without any additional libraries like jQuery.
## Middleware:
- Any functions that invoked by Express.js routing layer before your final request handler is made.
- Have access to the request object ( req ), the response object ( res ), and the next function in the application’s request-response cycle.
## Modularizing :
- Modularizing ensures that external functionality is created in such a way that it isn’t dependent on other external functionality, a concept known as loose coupling.
## Supertest:
- Supertest provide a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.
- It will hit your routes as though your server was running, without actually starting it.
## HTTP status codes:
- Indicate whether a specific HTTP request has been successfully completed.
- Status codes are issued by a server in response to a client’s request made to the server.