1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 | import uiRouter from './uiRouter'
|
9 | import * as express from 'express'
|
10 |
|
11 | const app = express()
|
12 | app.use(uiRouter)
|
13 |
|
14 | const port = 5053
|
15 | const listener = app.listen(port, () =>
|
16 | console.log(`Navigate to http://localhost:${listener.address().port}/ui to view Conversation Learner administration application.`)
|
17 | ).on('error', (error: NodeJS.ErrnoException) => {
|
18 | if (error.code === 'EADDRINUSE') {
|
19 | console.log(`ERROR: The UI is already running or the port (${port}) is in use by another process`)
|
20 | return
|
21 | }
|
22 |
|
23 | throw error
|
24 | }); |
\ | No newline at end of file |