Dependency Injection in Express Application by Sergey RadzishevskiiDependency Injection in Express Application by Sergey Radzishevskii

Dependency Injection in Express Application

Portfolio project
Sergey Radzishevskii

Overview ๐Ÿ”Ž

Guide how to inject dependencies in ExpressJS

Problem & Solution ๐Ÿค

There's no easy way to inject dependency in ExpressJS unless you use context that is a God Object. This guide tells you an alternative solution.
Goals/Requirements: Add some goals or requirements that helped get this project to the finish line. โ€ข Have the ability to build dependency injection container โ€ข Inject only what you need and do not pass the whole context. โ€ข Learn non-obvious benefits of dependency injection approach vs context injection.

Process ๐Ÿ›ฃ

We learn both approaches context injection and dependency container injections. Find pros and cons for each process. We will find criteria that will help you choose the right approach, taking into account the specifics of your application.

Results ๐ŸŽ

You will know how can easily inject components into your ExpressJS application. Why it simplifies tests and improves test coverage.

0 likes ยท 22 views ยท Sep 14, 2022

Learn how to implement Dependency Injection in ExpressJS! Simplify testing, improve coverage, and avoid the pitfalls of context-based solutions.

Tags