Aims to clean and modularize part of code to make it resuable.
/services/infra.js is added to hold code that maintains connections and
creations to infrastructure services, for instance MongoDB and Redis.
During cleaning app.js, this patch also fixes an issue #102, that is, requiring
/models/board in card.js returns empty object due to the circular dependency.
Aims to clean and modularize part of code to make it resuable. /services/infra.js is added to hold code that maintains connections and creations to infrastructure services, for instance MongoDB and Redis.
During cleaning app.js, this patch also fixes an issue #102, that is, requiring /models/board in card.js returns empty object due to the circular dependency.