( // eslint-disable-next-line @typescript-eslint/no-explicit-any oauth2Providers: any, dbBackupFile?: string, )
| 63 | * @param oauth2Providers |
| 64 | */ |
| 65 | export async function startApplication( |
| 66 | // eslint-disable-next-line @typescript-eslint/no-explicit-any |
| 67 | oauth2Providers: any, |
| 68 | dbBackupFile?: string, |
| 69 | ): Promise<ExpressServer> { |
| 70 | const config = await serverConfig(oauth2Providers); |
| 71 | const server = new ExpressServer(config); |
| 72 | await setupApplication(server.lbApp, dbBackupFile); |
| 73 | await server.boot(); |
| 74 | await server.start(); |
| 75 | return server; |
| 76 | } |
| 77 | |
| 78 | /** |
| 79 | * run main() to start application with oauth config |
no test coverage detected