()
| 58 | } |
| 59 | |
| 60 | function run() { |
| 61 | const port = process.env['PORT'] || 4000; |
| 62 | |
| 63 | // Start up the Node server |
| 64 | const server = app(); |
| 65 | server.listen(port, () => { |
| 66 | console.log(`Node Express server listening on http://localhost:${port}`); |
| 67 | }); |
| 68 | } |
| 69 | |
| 70 | run(); |