Patterns — Generic Repository with #typescript and Node.js
▻https://hackernoon.com/generic-repository-with-typescript-and-node-js-731c10a1b98e?source=rss--
Patterns — Generic Repository with Typescript and Node.jsBecome a master of CodesIf you work with Node.js/Javascript and you have many replicated codes for different data models or create CRUDs (Create, Read, Update and Delete) at all times, then this post is for you!Generic Repository PatternWorking with #javascript applications, we have some problems to share similar code between the application, and in many times we create the same code for different applications. That pattern gives to you a power to write an abstraction of data, when we have one abstract class (or many classes) and reuse the implementations independent of your Data Model, passing only your types to someone classes.Talking about the Repository pattern, it is a representation where you can keep all operations of your (...)