Can a service be run in an executable file? I want to streamline the process of "bootstrapping" a module and calling a service method directly
const userService = new UserService()
userService.find(1).then(console.log)
However, all dependencies would need to be connected, and the database initialized.
The usage of typedi
enables you to utilize getContainer
which automatically manages these tasks for you.