Reading-Notes

Class 06 Summary :

Explain what a “Singleton” is (in Computer Science terms) ?

Explain how the Singleton pattern can be used with Node modules, specifically with classes :

If you were tasked with building a middleware system like Express uses, what approach might you take to construct/operate it?

Document the following Vocabulary Terms :

Term  
Router Middleware what it does actualy is to take the original request, and forward it to a sub handler according to the path
Dynamic Module Loading function-like form of import that returns a promise of the requested module
Singleton Pattern is a creational design pattern that lets you ensure that a class has only one instance, while providing a global access point to this instance.
CRUD -> REST Method Matches Create –> POST , Read –> GET , Update –> PUT , Delete –> DELETE
Mock Testing is an approach to unit testing that lets you make assertions about how the code under test is interacting with other system modules.

Securing Passwords with Bcrypt Hashing Function :

Basic access authentication :

OWASP auth cheatsheet :

Sources :

source1 source2 source3 source4 source5