Created
April 18, 2018 06:02
-
-
Save trickycoders/641eb2e47c69870e4aa7d26cd22d4491 to your computer and use it in GitHub Desktop.
server.js
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
'use strict'; | |
const express = require('express'); | |
// Constants | |
const PORT = 8080; | |
// App | |
const app = express(); | |
app.get('/', function (req, res) { | |
res.send('Hello world!\n'); | |
}); | |
app.listen(PORT); | |
console.log('Running on http://localhost:' + PORT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment