bodgery / bodgery-member-api

1 stars 1 forks source link

Migrate from Globals to App Singletons #54

Closed kevinastone closed 3 years ago

kevinastone commented 3 years ago

Move the logger, db and typeorm_connection from globals to app singletons. This provides better isolation and composability to match the general express/connect practices.

This will become essential trying to mock and isolate tests allowing running offline from a running database or API services.