aboutsummaryrefslogtreecommitdiff
path: root/dist/index.js
diff options
context:
space:
mode:
authorjw2552018-01-10 12:58:28 +0000
committerjw2552018-01-10 12:58:28 +0000
commit8a8c42ddb2962ab4722774e7b8cc865bbef2b70f (patch)
treecd5a20138c05e0135febf875f36de0173d7f89fd /dist/index.js
parentmodified README and made a script to install all packages, compile ts and run... (diff)
downloadmedicine-8a8c42ddb2962ab4722774e7b8cc865bbef2b70f.tar.gz
medicine-8a8c42ddb2962ab4722774e7b8cc865bbef2b70f.zip

updated readme, todo to explain/include changes. wrote a test for helloworld. all test files need .test.ts extension.

Diffstat (limited to 'dist/index.js')
-rw-r--r--dist/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/index.js b/dist/index.js
index 9392034..7628251 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1,11 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-console.log('Hello, TypeScript!');
+console.log('Welcome to the CS3099 Server thingy!');
const app_1 = require("./app");
+// use default port 3000 or port supplied by OS
const port = process.env.PORT || 3000;
app_1.default.listen(port, (err) => {
if (err) {
return console.log(err);
}
- return console.log(`server is listening on ${port}`);
+ return console.log(`server is listening on port ${port}`);
});