ts => js
This commit is contained in:
		
							
								
								
									
										21
									
								
								server.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								server.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
/*---------------------------------------------------------------------------------------------
 | 
			
		||||
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 | 
			
		||||
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 | 
			
		||||
 *--------------------------------------------------------------------------------------------*/
 | 
			
		||||
 | 
			
		||||
'use strict';
 | 
			
		||||
 | 
			
		||||
const express = require('express');
 | 
			
		||||
 | 
			
		||||
// Constants
 | 
			
		||||
const PORT = 3000;
 | 
			
		||||
const HOST = '0.0.0.0';
 | 
			
		||||
 | 
			
		||||
// App
 | 
			
		||||
const app = express();
 | 
			
		||||
app.get('/', (req, res) => {
 | 
			
		||||
	res.send('Hello remote world!\n');
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
app.listen(PORT, HOST);
 | 
			
		||||
console.log(`Running on http://${HOST}:${PORT}`);
 | 
			
		||||
		Reference in New Issue
	
	Block a user