Created
June 25, 2016 04:31
-
-
Save shams-ali/30381ea50363e6e415c770ae254facb3 to your computer and use it in GitHub Desktop.
express server
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
'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