Skip to content

Instantly share code, notes, and snippets.

@coco98
Created May 28, 2017 06:52
Show Gist options
  • Save coco98/8db77e7d65d7894244bb93eacac788a3 to your computer and use it in GitHub Desktop.
Save coco98/8db77e7d65d7894244bb93eacac788a3 to your computer and use it in GitHub Desktop.
A simple server.js with one endpoint
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