Last active
February 19, 2017 16:12
-
-
Save maximgatilin/c1cf2c3c5473503b3aea86862283572d to your computer and use it in GitHub Desktop.
Express Simple Server #tags:express
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'; | |
var express = require('express'); | |
var app = express(); | |
app.get('/', function(req, res) { | |
res.send("<h1>I love Treehouse!</h1>"); | |
}); | |
app.listen(3000, function() { | |
console.log("The frontend server is running on port 3000!"); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment