Created
September 6, 2022 20:59
-
-
Save gabrielbmoro/602f3037b55dbaed174508c01828a95f to your computer and use it in GitHub Desktop.
An API Project - Gists Part 3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { container } from "tsyringe"; | |
... | |
function setup() { | |
container.registerSingleton<ISisOrgRepository>( | |
"ISisOrgRepository", | |
FirestoreDataSource | |
); | |
} | |
... | |
app.listen(port, () => { | |
setup(); | |
console.log("Server is running..."); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment