Building the layered server application achieved by InversifyJS
summary
Builds a layered server with TypeScript 3.6, Express and Cloud SQL MySQL and shows how InversifyJS plus a DI container lets the app swap database providers for tests and production without changing business code. Implements a clear layer stack: HTTP router → mediators → repository pattern → reader/writer per relation → DB provider, uses Knex.js for SQL and transaction control, models domain with typed value objects and performs validation in constructors via constructor injection so runtime invariants hold.
AI-written summary · about
chapters (5)
- 0:00Introduction to layered server
- 5:15What is tight coupling
- 12:12Dependency injection with InversifyJS
- 19:36Why switch to InversifyJS
- 27:19Summary and Q&A
related talks
46mArchitecture of a Modern Enterprise Node js Application
35mRethinking Enterprise Architectures with Node.js
47mDivide and Conquer – Microservices with Node.js
45mBuilding Isomorphic Apps (Updated)
04mRethinking the Full Stack Framework
38mBuild modern and scalable Node.js Web Applications with Nest
41mArchitecture in Node.js using NestJS
33mStrategic Node.js crossroads in 2023
