This commit is contained in:
Chuck Lantz
2019-04-16 19:41:33 -07:00
parent b0f7a6d0a8
commit 684f7e0268
11 changed files with 792 additions and 1 deletions

19
src/server.ts Normal file
View File

@@ -0,0 +1,19 @@
/*-----------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See LICENSE in the project root for license information.
*---------------------------------------------------------------------------------------*/
import * as express from 'express';
// Constants
const PORT = 3000;
const HOST = '0.0.0.0';
// App
const app = express();
app.get('/', (req, res) => {
res.send('Hello world\n');
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);