()
| 50 | } |
| 51 | |
| 52 | function run(): void { |
| 53 | const port = process.env['PORT'] || 4000; |
| 54 | |
| 55 | // Start up the Node server |
| 56 | const server = app(); |
| 57 | server.listen(port, () => { |
| 58 | console.log(`Node Express server listening on http://localhost:${port}`); |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | // Webpack will replace 'require' with '__webpack_require__' |
| 63 | // '__non_webpack_require__' is a proxy to Node 'require' |