From b833729a07961a78e6b748e928158a282a871873 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Thu, 7 May 2020 19:14:10 +0700 Subject: [PATCH] change port to 8080 --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 6481ef3..397f767 100644 --- a/index.js +++ b/index.js @@ -3,10 +3,12 @@ var express = require('express') var app = express() +const PORT = 8080 + app.get('/', function (req, res) { res.send('Hello from CUBETIQ!') }) -app.listen(7000, function () { - console.log('app listening on port 7000!') +app.listen(PORT, function () { + console.log(`app listening on port ${PORT}!`) })