Created
May 28, 2017 06:52
-
-
Save coco98/8db77e7d65d7894244bb93eacac788a3 to your computer and use it in GitHub Desktop.
A simple server.js with one endpoint
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
var express = require('express'); | |
var app = express(); | |
//your routes here | |
app.get('/respond', function (req, res) { | |
res.send("Hello World!"); | |
}); | |
app.listen(8080, function () { | |
console.log('Example app listening on port 8080!'); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment