aboutsummaryrefslogtreecommitdiffstats
path: root/index.js
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 20:47:47 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2019-04-17 20:47:47 -0500
commit49527ce314ea4f24dd0da6f427e18678008ea66b (patch)
tree81f86ef1f9958062dbe499f18a2ba6622146bd35 /index.js
parent3996a89be85c4101973d0679d442be8fa3a39a3b (diff)
Add base for a server at port 3000
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.js b/index.js
index e69de29..ad87f76 100644
--- a/index.js
+++ b/index.js
@@ -0,0 +1,7 @@
+const express = require('express');
+
+const app = express();
+
+const PORT = process.env.PORT || 3000;
+
+app.listen(PORT, () => console.log(`Server started on port ${PORT}`));