()
| 39 | } |
| 40 | |
| 41 | function run(): void { |
| 42 | const port = process.env['PORT'] || 4000; |
| 43 | |
| 44 | // Start up the Node server |
| 45 | const server = app(); |
| 46 | server.listen(port, () => { |
| 47 | console.log(`Node Express server listening on http://localhost:${port}`); |
| 48 | }); |
| 49 | } |
| 50 | |
| 51 | // Webpack will replace 'require' with '__webpack_require__' |
| 52 | // '__non_webpack_require__' is a proxy to Node 'require' |