diff options
| author | jw255 | 2018-01-10 12:58:28 +0000 |
|---|---|---|
| committer | jw255 | 2018-01-10 12:58:28 +0000 |
| commit | 8a8c42ddb2962ab4722774e7b8cc865bbef2b70f (patch) | |
| tree | cd5a20138c05e0135febf875f36de0173d7f89fd /src/index.ts | |
| parent | modified README and made a script to install all packages, compile ts and run... (diff) | |
| download | medicine-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 'src/index.ts')
| -rw-r--r-- | src/index.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.ts b/src/index.ts index 80a02d9..69150e2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,8 @@ -console.log('Hello, TypeScript!'); - - +console.log('Welcome to the CS3099 Server thingy!'); import app from './app' +// use default port 3000 or port supplied by OS const port = process.env.PORT || 3000 app.listen(port, (err) => { @@ -11,5 +10,5 @@ app.listen(port, (err) => { return console.log(err) } - return console.log(`server is listening on ${port}`) + return console.log(`server is listening on port ${port}`) })
\ No newline at end of file |
