UNPKG

846 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3/**
4 * Copyright (c) Microsoft Corporation. All rights reserved.
5 * Licensed under the MIT License.
6 */
7/**
8 * This is just a convenience for @conversationlearner/sdk developers to test the UI
9 */
10const uiRouter_1 = require("./uiRouter");
11const express = require("express");
12const app = express();
13app.use(uiRouter_1.default);
14const port = 5053;
15const listener = app.listen(port, () => console.log(`Navigate to http://localhost:${listener.address().port}/ui to view Conversation Learner administration application.`)).on('error', (error) => {
16 if (error.code === 'EADDRINUSE') {
17 console.log(`ERROR: The UI is already running or the port (${port}) is in use by another process`);
18 return;
19 }
20 throw error;
21});
22//# sourceMappingURL=uiServer.js.map
\No newline at end of file