Skip to content

Instantly share code, notes, and snippets.

@jacobbridges
Last active May 10, 2016 02:37
Show Gist options
  • Save jacobbridges/7d01a48e86e11583820be6e99fb7573c to your computer and use it in GitHub Desktop.
Save jacobbridges/7d01a48e86e11583820be6e99fb7573c to your computer and use it in GitHub Desktop.
var express = require('express');
var app = express();
// Create a route for the base endpoint
app.get('/', (req, res) => {
res.send('Hello World!');
});
// Run the server
app.listen(3000, () => null);
$ npm init
$ npm install express
$ node server.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment