Created
September 9, 2020 16:12
-
-
Save nghiahsgs/3faf7f091dfdea5180ce2e87791b3850 to your computer and use it in GitHub Desktop.
This file contains 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 express = require('express'); | |
const app = express(); | |
app.get('/', (req, res) => { | |
res.send("Hello World!"); | |
}); | |
const port = 3000; | |
const server = app.listen(port, () => { | |
console.log(`Listening on http://localhost:${port}`); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment