20 lines
		
	
	
		
			599 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			599 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
/*-----------------------------------------------------------------------------------------
 | 
						|
 * 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}`);
 |