Reading notes about code for my future reference.
Classes are essentially a template for creating ‘special functions’
A class will ultimately reject being hoisted because they have to be defined before they are constructed.
You have have a cookie cutter and the cookie cutter has its features that will be applied to the cookie everytime it is applied. The contextual this refers to the cookies that result from the cookie cutter.
Routing referes to how an application’s endpoints respond to client requests.
A route method is derived from a HTTP method and attached to an instance of an express class, where as a route path can be used in conjunction with a method to create an end point.
If a callback function aka handler has more than one arguement is than require to provide next to the callback function and call next() to provide control to the next call back.
An express router is an mini instance of the express application, it only contains the routing functionality.
When you intialize the express you are essentially creating a new router for usage.
Route middleware in Express is a way to do something before a request is processed. like checking log, authentication before actually reaching out to the user.
My goal for sure is to be able to make proper and well developed authentcation processes, I’d also definitely like to be able to handle all of the CRUD operations without putting much thought into it. I’d also like to look into what Sequelize means and does.