Sessions in Node #5 | Authentication in Node.js with Express and sessions | refactoring codebase

preview_player
Показать описание


This part 5 of our series in which we continue refactoring our already working application so split functionality over multiple files.

00:00 - rationale for moving request handling to controller
01:45 - moving login logic to authentication controller
02:50 - wiring up authentication controller in routes file
03:28 - moving protected route request handling to a controller
05:53 - moving session middleware to a separate file
07:41 - move connect-redis to our session middleware
08:02 - move redis client to its own file
09:44 - wiring up redis client with express-session middleware
10:04 - wiring up session middleware with express server
Рекомендации по теме
Комментарии
Автор

Man you do understand programing and learning process. At many tutorial the show just how to start, but more complex setups are omitted. You show basic setup and advanced ones - combining those and additionally mention about problem that can appear. I really appreciate that - I think this is very good approach. MOOOARRR!

aaabbb-qvff
Автор

this channel teach me how to be real a software engineer, thank you dude

hafizmfadli
Автор

this is another wonderful video
Thanks

ahmedelgaidi
welcome to shbcf.ru