()
| 83 | }; |
| 84 | |
| 85 | function run(): void { |
| 86 | const port = process.env['PORT'] || 4000; |
| 87 | |
| 88 | // Start up the Node server |
| 89 | const server = app(); |
| 90 | server.listen(port, () => { |
| 91 | console.log(`Node Express server listening on http://localhost:${port}`); |
| 92 | }); |
| 93 | } |
| 94 | |
| 95 | run(); |