forked from microsoft/vscodespaces-quickstart
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.js
More file actions
21 lines (16 loc) · 641 Bytes
/
server.js
File metadata and controls
21 lines (16 loc) · 641 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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';
var express = require('express');
// Variables
var PORT = 3000;
var HOST = 'localhost';
// App
var app = express();
app.get('/', (req, res) => {
res.send(`Hello world from VS Codespaces\n`);
});
app.listen(PORT, HOST);
console.log(`Running on http://${HOST}:${PORT}`);