Created
December 26, 2018 21:12
-
-
Save mikepfeiffer/00b46a203e00108951a952dd1c0d30dc to your computer and use it in GitHub Desktop.
Simple Node Demo App
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const config = require('./config'); | |
const express = require('express'); | |
const app = express(); | |
app.get('/', (req, res) => { | |
res.send('Hello World v2!'); | |
}); | |
app.listen(config.port, () => { | |
console.log(`Server started on port ${config.port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment