Creating a new Repository A Repository is our abstraction behind the real implementation of a Database source, or a remote REST API. A Repository is exposed as an interface when adding it to our DI graph.