MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / startApplication

Function startApplication

examples/passport-login/src/index.ts:65–76  ·  view source on GitHub ↗
(
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  oauth2Providers: any,
  dbBackupFile?: string,
)

Source from the content-addressed store, hash-verified

63 * @param oauth2Providers
64 */
65export 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

Callers 2

mainFunction · 0.85

Calls 4

bootMethod · 0.95
startMethod · 0.95
serverConfigFunction · 0.85
setupApplicationFunction · 0.70

Tested by

no test coverage detected