MCPcopy
hub / github.com/rx-angular/rx-angular / run

Function run

apps/ssr/server.ts:51–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49}
50
51function run(): void {
52 const port = process.env['PORT'] || 4000;
53
54 // Start up the Node server
55 const server = app();
56 server.listen(port, () => {
57 console.log(`Node Express server listening on http://localhost:${port}`);
58 });
59}
60
61// The below code is to ensure that the server is run only when not requiring the bundle.
62const isMain = process.argv[1]?.includes('server');

Callers 1

server.tsFile · 0.70

Calls 2

appFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected