diff options
author | William Harrington <kb0iic@berzerkula.org> | 2019-04-17 20:47:47 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2019-04-17 20:47:47 -0500 |
commit | 49527ce314ea4f24dd0da6f427e18678008ea66b (patch) | |
tree | 81f86ef1f9958062dbe499f18a2ba6622146bd35 /index.js | |
parent | 3996a89be85c4101973d0679d442be8fa3a39a3b (diff) |
Add base for a server at port 3000
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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}`)); |