Dependency Injection in Node with awilix #1
דרג סרטון זה
התחבר כדי לדרג
תיאור
🔥More exclusive content: https://productioncoder.com/you-decide-what-we-build-next Twitter: https://twitter.com/_jgoebel Blog: https://productioncoder.com Finished code: https://github.com/productioncoder/node-dependency-injection Starter code: https://github.com/productioncoder/node-dependency-injection/tree/starter Learn how to use dependency injection in Node.js with awilix so that your app is easier to test. This is episode 1 of our series in which we cover how the structure of an application affects its testability. 00:00 introduction to dependency injection and awilix 00:57 example application walk through 03:07 example app code walk through 05:40 examining the server's REST endpoints 06:23 controller structure 07:46 service and data access object layer 08:47 how to test the service layer of an application 09:36 how dependency injection makes code more testable 10:49 how to make individual layers testable