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

Method start

examples/passport-login/src/server.ts:65–73  ·  view source on GitHub ↗

* Start the express app and the lb4 app

()

Source from the content-addressed store, hash-verified

63 * Start the express app and the lb4 app
64 */
65 public async start() {
66 await this.lbApp.start();
67 const port = this.lbApp.restServer.config.port ?? 3000;
68 const host = this.lbApp.restServer.config.host ?? 'localhost';
69 this.server = this.webApp.listen(port, host);
70 await once(this.server, 'listening');
71 const add = <AddressInfo>this.server.address();
72 this.url = `http://${add.address}:${add.port}`;
73 }
74
75 /**
76 * Stop lb4 and express apps

Callers 1

startApplicationFunction · 0.95

Calls 3

onceFunction · 0.85
addressMethod · 0.80
startMethod · 0.65

Tested by

no test coverage detected