aboutsummaryrefslogtreecommitdiff
path: root/src/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.ts')
-rw-r--r--src/index.ts7
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